Archived

This topic is now archived and is closed to further replies.

intellisense refuses to list members of vertexbuffer...

This topic is 5172 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

	BYTE *Ptr;

	sVertex Verts[]={
		{-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)}
	};

	vertexbuffer->Lock(0,0,(BYTE**)&Ptr,0);
	//memcpy(Ptr,Verts,sizeof(Verts));
	vertexbuffer->Unlock();
intellisense will no longer list members for vertexbuffer. if i delete the Verts[] stuff, it will though... how can i change this so that intellisense/autocomplete will start working again?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
if the code does compile, then delete the .ncb file. That''s the file that controls intellisense, Visual Studio will recreate it and your problems will be solved.

Share this post


Link to post
Share on other sites
must have just been some weird ass problem or something...

i got up this morning, started the computer, and intellisense works just fine

my code was fine, compiled and ran and everything, intellisense wouldnt show members for any class inside the function where that Verts[] stuff was...

thanks for the tip on the ncb file !

Share this post


Link to post
Share on other sites
quote:
Original post by DrunkenHyena
Intellisense isn't very intelligent and sometimes it does some pretty wacky things. However, Visual Assist from www.wholetomato.com rocks. Now that I've used it, I can't go back to developing without it.


Stay Casual,

Ken
Drunken Hyena


Not a good practice for beginners, but it's really handy I agree.
(btw: I'm sorry about my signature )


--
You're Welcome,
Rick Wong
- sitting in his chair doing the most time-consuming thing..

[edited by - Pipo DeClown on October 16, 2003 3:07:18 PM]

Share this post


Link to post
Share on other sites
Intellisense is, and has always been, pretty crap. Here''s what I do when it''s not working:

1. Check there are no syntax errors in previous code.
2. Add the header file containing the declaration you want to your project (if this works you can remove the header file immediately and intellisense will carry on working)
3. Close Visual Studio, delete the project''s ncb file and then reopen the project.

(Yes, I know these things were all mentioned by previous posters)

That normally gets things working, but recently I had problems with functions defined inside an extern "C" { block (some of the D3DX functions) I just couldn''t get Intellisense to recognise them and, despite posting here and elsewhere asking for help, the only advice I got was to download Visual Assist. Microsoft should feel ashamed that Intellisense STILL works so inconsistently when Visual Assist has been working well since Visual Studio 6.0.

Share this post


Link to post
Share on other sites