intellisense refuses to list members of vertexbuffer...

Started by
7 comments, last by fireking 20 years, 6 months ago

	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?
--FirekingOwner/LeaderFiregames Development &Blackdragon Studios
Advertisement
Well does the actul code compile? Becuase if it does then there is no point worrying about what intellisense does.
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.
Or restart your Visual Studio.

When IntelliSense doesn''t work, it usually has something to do with syntax errors in your code. Try compiling it first.
Try including the headers in your project.

--
You''re Welcome,
Rick Wong
- sitting in his chair doing the most time-consuming thing..
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 !
--FirekingOwner/LeaderFiregames Development &Blackdragon Studios
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
Stay Casual,KenDrunken Hyena
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]
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.

This topic is closed to new replies.

Advertisement