473,569 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(2 55, 255, 255, 255)},
{100.0f, 100.0f, 100.0f, D3DCOLOR_RGBA(2 55, 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_pD3DV B->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_pD3DV B->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 1089

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

Similar topics

1
2036
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 problems so wanted to clear it up for sure. I have Windows XP Pro. Already have installed Office 2003 and Visual Studio .net 2003 trial.
4
2080
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 the helpfile it says to install the .Net Programmability support from Office setup or install Office using the complete option. Then select New...
2
2019
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 I may need a patch or changes would not be saved. So I have to do the table changes in SQL Express Management studio. 2. When I modify a stored...
1
4526
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 to for this problem short of reinstalling the local developer XP OS/IIS 5.1 ? I have tried everything else listed in various threads. I think my...
0
1029
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 intellisense seems to "disable" itself; all of the color-coded formatting of language specific keywords turns gray * I lose the ability to Undo. Sometimes...
9
1738
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
2380
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 is not a valid Visual Studio Solution file. When we try to load a project file, we get: Unable to read the project file. The project was...
3
1678
by: robin9876 | last post by:
Is it possible to install Visual Studio 2003 and 2005 on the same pc?
1
2284
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 us whcih version of the Crystal Reports will work best on our Visual Studio 2003? given that the built in Crystal Reports for Visual Studio 2003 is...
7
1819
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 Studio 2003. Questions: 1. Is it even possible to use VS 2003 to develop when all files and IIS are on a remote machine or VM?
0
7695
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3637
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1209
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.