473,395 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1075

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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.