|
Hello!
I am using Visual C++6, Enterprise Edition. My problem in editing is that, when I create a project everything works fine, however, after addition of some functions etc., the Automatic Statement Completion does not work. When I do it manually (writing down the code for member variables & functions)the program compiles and runs.
It is mentioned in MSDN that when there is a code error above the cursor the option will not be available. Since there is no compilation error how come there can be a code error?
Please help me if you can!
pani
|
|
|
|
|
pani68 wrote: Please help me if you can!
Close your workspace/project-> Delete [projectname].ncw and [projectname].clw file -> restart the project again, your auto complete featue will start working again!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanks!
I did not get the .ncw file. My problem was solved after deleting .clw and .ncb files.
pani
|
|
|
|
|
pani68 wrote: I did not get the .ncw file.
I Mean .ncb file there, sorry for miscommunication
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I insert a icon to a listctrl's second colomn(subitem,not header),it show left,how can i make it show middle?
|
|
|
|
|
To my knowledge, I don't think there is an easy way. What I do is add a handler for OnCustomDraw and draw it manually.
"When you know you're going to eat crow, it's best to eat it while it's still warm." - Reader's Digest
|
|
|
|
|
Hi
I need to embed a binary file in my exe and in my program i need to read the same file and create a new file in some directory. I dont know how to embed a binary file. Or give me idea on how to store a binary data and finally i should have only EXE file after compilation(with binary data in it).
Regards
Anandan
|
|
|
|
|
Hi,
try importing the file into resource.
Bye,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
cuteanniyan wrote: I need to embed a binary file in my exe and in my program i need to read the same file and create a new file in some directory. I dont know how to embed a binary file. Or give me idea on how to store a binary data and finally i should have only EXE file after compilation(with binary data in it).
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
This Article will help :-
http://www.codeproject.com/cpp/UpdateResource.asp
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
toxcct wrote: isn't there something missing here ?
Answer Under signature
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanks a lot guys!!!!!11
|
|
|
|
|
I am getting this issue in VC 7.1:-
error C2504: 'IPrintDialogCallback' : base class undefined.
Can some1 plz help me ?
Best Regards
|
|
|
|
|
Hi,
inlcude windows.h
Bye,
Cool Ju
Dream Ur Destiny
|
|
|
|
|
but where ??? ... I am getting this error in a file which is part of SDK !!!
Best Regards
|
|
|
|
|
What OS r u using. Since to impelement IPrintDialogCallback interface u need Windows 2000 minimally.
Bye
Cool Ju
Dream Ur Destiny
|
|
|
|
|
I am using Windows XP. I am migrating code from VC 6.0 to 7.1 . Previously, in 6.1 there was no such error but I am encountering this error in VC 7.1.
Any help.
Best Regards,
|
|
|
|
|
Try to download the latest SDK from MS site
After installing it,
check your VC IDE Options->Directories->Include Files.
latest MS SDK must be first in list
Also, modify the stdafx.h file, add next line:
#define OEMRESOURCE
it will fix bug with incompatibility CmdBar.h and latest MS SDK.
Bye
Cool Ju
Dream Ur Destiny
|
|
|
|
|
I had added the following line to stdafx.h but it didnt help.
#define OEMRESOURCE
What is the latest version of SDK ?. So I can compare it with my version. and how do u know ur version of SDK ?
Best Regards
|
|
|
|
|
Ibraheem Khan wrote: but where ??? ... I am getting this error in a file which is part of SDK !!!
Define these constant in your StdAfx.h file :-
_WIN32_WINNT>=0x0500
WINVER>=0x0500
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi All,
I want to develop one utility which will watch for any operation which caused to send any document through attachment using outlook 2003.
My Question is:
1. Will Hooking to API will be better option to achieve the desired functionality? If yes, which API should we Hook for that?
2. Do we need to track MSAA events for keyboard/ mouse operations on UI of outlook. if yes, where can i find knowledge about outlook 2003 about various ways through which an attachment can be send.
Regards
Abhinav
HCL Technologies, Noida(India)
|
|
|
|
|
|
hello all...
i have a parent form and some child forms..
In child form(both in .h and .cpp files), if i want to exit from a particular function or procedure or event, i used exit(0) function.. it works fine..
But when i use the same function in parent form, it closes the application instead of exiting just from the particular function..
why? pls explain...
Salai
|
|
|
|
|
if you want to quit a function, use the return keyword...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi..thanks for yr reply...
But thats not a function..
its an event.. check this code..
private: System::Void mnuimport_Click(System::Object * sender, System::EventArgs * e)
{
if (MinmaxFlag==false)
{
MessageBox(0,"Configuartion file is not set. Please import it.","Configuration",MB_OK);
exit(0);
}
else if (RangesFlag== false)
{
MessageBox(0,"Data Ranges file is not set. Please set it.","Data Ranges",MB_OK);
exit(0);
}
OpenFileDialog *openFileDialog1 = new OpenFileDialog();
Stream *str;
openFileDialog1->InitialDirectory = "c:\\Neural Net\\" ;
openFileDialog1->Filter = "data files (*.data)|*.data|All files (*.*)|*.*" ;
openFileDialog1->FilterIndex = 2 ;
openFileDialog1->RestoreDirectory = true ;
..........
}
Salai
|
|
|
|