|
yes i have checked my for dll :
project->setting->link->C:\ActiveXdll\WartzODLCOM.lib
And in c: drive also it is present wartzODLCOM.dll and .lib is present
And i have "#define WartzODLCOM" in my cpp file include where i am calling this dll function...
Now whats wrong here....
(Or should i need to include header file of dll in my project and then call function.....)
-- modified at 4:48 Friday 15th December, 2006
|
|
|
|
|
With_problem wrote: project->setting->link->C:\ActiveXdll\WartzODLCOM.lib
I this case you can directly call dll function.
I would suggest reading this series of article[^] to understand usage of dlls.
|
|
|
|
|
I am trying to include strsafe.h file to also my project but there is error no such file r directory.......can you help me how to solve this
|
|
|
|
|
make sure that you have updated Windows Plateform SDK if not you can download and install it from
"http://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en" because the library which contains the "strsafe.h" functions won't be availaible to you without installing SDK. Once u have installed SDK go to Start->Programs->Microsoft Plateform SDK for Windows Server 2003 SPI->Visual Studio Registration->Registerd PSDK Directories with Visual Studio.
Once you have done with it you have to include the "strsafe.lib" in your program from Projects->Settings->Link.
Now include the "strsafe.h" in your program and and enjoy using strsafe functions.
VV IMPORTANT : Include "strsafe.h" at the end of all other include directives.
Thanks and Regards,
Love
Zeeshan Malik
Prepare yourseld for the life after death.God bless you.
|
|
|
|
|
i need tutorial to under stand the CFile
|
|
|
|
|
This[^] article may help you in some way.
|
|
|
|
|
ranaharoonkhan wrote:
i need tutorial to under stand the CFile
what about MSDN itself
"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
Support CRY- Child Relief and you
|
|
|
|
|
|
Look on the msdn website. The msdn is the microsoft documentation site for windows classes and API, such as CFile.
OK, look at this[^] post. Sorry, had the same idea at the same time.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
|
|
|
|
|
I want to create virtual drive letters (e.g. X: ) that map to socket connections behind the scenes. I know it is possible because someone has already done something similar to what I want to do:
WebDrive[^]
What should be my approach to this? How does WebDrive do that?
|
|
|
|
|
How to get the date before 10 days from the current date
|
|
|
|
|
Does this work?
COleDateTime dt( 2006, 12, 14, 0, 0, 0);
COleDateTimeSpan ts( 10, 0, 0, 0);
COleDateTime dt2 = dt - ts;
[edit]Or actually:
COleDateTime dt = COleDateTime::GetCurrentTime();
[/edit]
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
|
hi
I have to do a file conversion which is a very lengthy task.
To show user that the program is converting, I create a modalless dialog with a static text "CONVERTING..." on it. I intend to show it before calling the convert function and hide the dialog after conversion done. code like this:
CDlgInfo *dlg = new CDlgInfo;
dlg->Create(IDD_INFO,this);
dlg->ShowWindow(SW_SHOW);
CallConvertFunction(........sth...)
dlg->ShowWindow(SW_HIDE);
it doesn't work. my dialog show up without the static text on it.
If I replace the convert function call with MessageBox("laksdjlf") then my IDD_INFO dialog shows up with its static text with no proplem. I dont understand why this happen. I have try insert Sleep(1000) or even system("pause") before the convert function call but it also doesn't work.
|
|
|
|
|
Probably WM_PAINT messages are not being processed because no window messages are being dispatched
during CallConvertFunction().
What if you force a paint, something like this:
CDlgInfo *dlg = new CDlgInfo;
dlg->Create(IDD_INFO,this);
dlg->ShowWindow(SW_SHOW);
dlg->Invalidate(FALSE);
dlg->UpdateWindow();
CallConvertFunction(........sth...)
dlg->ShowWindow(SW_HIDE);
|
|
|
|
|
Thanks a lot. it now runs as I wish
my convert function uses all low level programming techniqe (i wrote it using just C, not C++) and is separated from all windows message. so it was really because of WM_PAINT messages not processed.
-- modified at 23:16 Thursday 14th December, 2006
|
|
|
|
|
Hello friends i am working with database and using "oledb consumer wizard"( provider for sqlserver )for connction with database....But i have a gr8 confusion here...
My table name is "T_Quote"(in .adp)but when i see table name in consumer wizard it is "db.T_Quote"
Can anybody help me to clear me why it is like this way....
|
|
|
|
|
I believe that's the "schema" portion of the table name, where a table name is
server.database.schema.tablename
Similar to namespaces we use in our code.
I'm no SQL expert but if you search "User Schema Separation" you'll find lots of info.
Here's[^] a great board to post the question on.
Hope this helps a little
Mark
|
|
|
|
|
In Debug mode we can see the debug assertion message, and we cannot run after assertion.
But what happens in release mode.
I saw the entire code after the assertion line in the function is not executed.
But the parent function seems to continue without problem.
Is there any chance for parent function also affected by the error, like function stack corruption etc.
In my case the assertion failure is because of when try to access out of bound index of CArray.
Thanks & Regards,
Suman
|
|
|
|
|
In release mode anything in the ASSERT(...) is not compiled, so nothing will happen.
If you put any code in those parenthesis it will NOT be compiled in release mode so it won't
execute.
If you are getting an assertion error during debug then you should fix the error before making
a release build. The release build may appear to run correctly if you don't, but if the assert
was used correctly then it probably shouldn't have been ignored.
rp_suman wrote: In my case the assertion failure is because of when try to access out of bound index of CArray.
That's one you don't want to ignore!
Mark
|
|
|
|
|
read This[^] and find the "ASSERT and VERIFY" paragraph, around the middle of the page.
|
|
|
|
|
Thanks for help.
I would like to know about the effect of assertion failure by MFC library (like accessing out of bounds index of CArray) where there is no ASSERT/VERIFY in code. Does it affect only the function where error happens or the overall application. I am eager to know the answer.
Thanks & Regards,
Suman
|
|
|
|
|
M having problems implementing segmentation with histogram. Actually i require histogram to decide my segmentation threshold. Any help???
|
|
|
|
|
Hi, I am trying to set an edit box to read-only during runtime.
I tried the two codes below, both caused the program to close.
m)CEditData.SendMessage(ES_READONLY);
and
m_CEditData.SetReadOnly(TRUE);
How can I toggle the read-only style without crashing?
Thanks
|
|
|
|
|