472,962 Members | 2,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,962 software developers and data experts.

Intellisense in Studio.NET 2003 C++

Using the following code:

typedef struct
{
FLOAT x, y, z; // Coordinates
D3DCOLOR dif; // Diffuse color
} sVertex;

sVertex Verts[4] = {
{-100.0f, 100.0f, 100.0f, D3DCOLOR_RGBA(255, 255, 255, 255)},
{100.0f, 100.0f, 100.0f, D3DCOLOR_RGBA(255, 0, 0, 255)},
{100.0f, -100.0f, 100.0f, D3DCOLOR_RGBA(0, 255, 0, 255)},
{-100.0f, -100.0f, 100.0f, D3DCOLOR_RGBA(0, 0, 255, 255)}
};

// Copy local vertices into vertex buffer
memcpy(g_pPtr, Verts, sizeof(Verts));

// Unlock the vertex buffer
if (FAILED(g_pD3DVB->Unlock()))
{
AppError(true, "Init Failure: Unlock()");
}

When you make the call during the if statement: g_pD3DVB-> the
intellisense stops working. However in a brief personal debug of
intellisense stopping to work I found the following bits of information
handy:

If I remove the D3DCOLOR from the structure and from the definition of
Verts[4] making it Verts[3], Intellisense works again. Shown here is
the new code:

typedef struct
{
FLOAT x, y, z; // Coordinates
} sVertex;

sVertex Verts[3] = {
{-100.0f, 100.0f, 100.0f},
{100.0f, 100.0f, 100.0f},
{100.0f, -100.0f, 100.0f},
{-100.0f, -100.0f, 100.0f}
};

// Copy local vertices into vertex buffer
memcpy(g_pPtr, Verts, sizeof(Verts));

// Unlock the vertex buffer
if (FAILED(g_pD3DVB->Unlock()))
{
AppError(true, "Init Failure: Unlock()");
}

Something during the specific definition of Verts[4] and more
specifically with the D3DCOLOR_RGBA() causes Intellisense to stop
working. Anybody know if there is a known qualm with DirectX causing
Intellisense to hang on those function calls inside the definition? Or
more so just the fact that I am placing a function call inside a
definition?

- Charlie "Zychrias"

May 30 '06 #1
0 1057

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Dave Smithz | last post by:
Hi there, Summary: Installing Visual Studio 6 AFTER Visual Studio 2003 trial and Office 2003 - Is it safe? I know this has been asked many times before, but I have seen postings about...
4
by: Hawkmoth | last post by:
Hi I hope you can help with what seems to be a simple problem that is driving me nuts! I am developing a C# application using Visual studio 2003 and I need to use Office 2003 automation. In...
2
by: Belee | last post by:
1. I am using sql server express and visual studio 2003. I have been able to create the connection to the database in server explorer but cannot update table definitions. It gives an error that...
1
by: gerr | last post by:
Visual studio 2003 "HTTP/1.1 500 Internal Server Error" when trying to create a new Asp.net site with Visual Studio 2003 on localServer/IIS 5.1. Anyone have any new solutions or urls to point me...
0
by: bizsolutiondev | last post by:
Hi all, I am using Visual Studio 2003 to develop a C# ASP.NET application. With one Web Form in particular, when I am editing the C# code-behind class, several things happen: * The...
9
by: TD | last post by:
Which versions of Windows operating systems can you build applications for with Visual Studio 2003, in particular VB? How about Visual Studio 2005, in paricular VB? Thanks, TD
4
by: Skc | last post by:
We have a developer who has made an application in Visual Studio 2003 and this will not work in our version of Visual Studio 2002. Error message: Solution file loading error: The selected file...
3
by: robin9876 | last post by:
Is it possible to install Visual Studio 2003 and 2005 on the same pc?
1
by: Jason Huang | last post by:
Hi, We've been trying working the Crystal Reports XI on our Visual Studio 2003, however, the CR XI doesn't work on our VS2003 at all. So, I am thinking giving up the CR XI. Would someone tell...
7
by: Chris Marsh | last post by:
All I've been asked run a VM on my development machine, with Windows Server 2003 installed. I've also been asked to then develop against this environment from the host machine, using Visual...
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.