|
Thank you sir ..i ll come back with good result ..
Raju !!!
|
|
|
|
|
How did you test your DLL? Are you using LoadLibrary() and GetProcAddress()?
|
|
|
|
|
Sorry for the delay ..sirs..
i am using LoadLibrary function
Raju !!!
|
|
|
|
|
Use the Dependency Walker[^] tool to check if the DLL exports what you want to invoke.
Maxwell Chen
|
|
|
|
|
raju_Code wrote: The procedure entry point xxxxx could not be located in the dynamic link library yyy.dll
What are the "xxxx" and "yyy" ?
How did you create the dll ?
|
|
|
|
|
Dll creation
extern "C"
{
__declspec(dllexport) int MyFunction()
{
DetailFunction();
.................
}
}
xxxx means DeatailFunction();
yyyy means another one dll
Raju !!!
|
|
|
|
|
No, that's just a bunch of code. I asked how did you create the dll ? Did you use the creation wizard ? Is it a MFC dll or a plain dll ? Do you have a DllMain function ?
raju_Code wrote: xxxx means DeatailFunction();
yyyy means another one dll
What do you mean ? Your dll is using another dll ?
|
|
|
|
|
I have linked the dialog with the database bt m nt able to display the data in the edit boxes in the dialog.
Smebody please help with the code...
|
|
|
|
|
You should give more details...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
the database consists of a table named "Manager" having the following fields
"ManagerID"
"Manager Last Name"
"Manager First Name"
there are a total of 7 entries in each field.
I want each field to be displayed in separate edit boxes in dialog.
Have linked the database bt m not able to display the data in dialog.
Please help with code.
Thanks in advance.
|
|
|
|
|
billu 2 wrote: Have linked the database bt m not able to display the data in dialog.
So, if I got you, you made a connection to the database. Now, you know it's just matter of quering the databse for the right data.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
billu 2 wrote: ...bt m nt able to display the data in the edit boxes in the dialog.
First, fix the vowel keys on your keyboard. Second, associate a CEdit variable with each of the edit controls. Then you can use SetWindowText() to set the text within the edit controls.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi...
Now i am having a text file like,
oueyrfdhfdsfdsfkdjfd
dsdysjhdjsydhjshdjksd
sdytytdhsdshdtshdgshd
dsygdhsdjsdgsjhdgsdj
i read this file Using CString variable.
Now i want to delete 3rd line from this file.
What is the synatax for delete a line from file?
G.Paulraj
|
|
|
|
|
Read all the content of that file into a buffer (for example: a std::string or CString ), locate that line (the start pos and the end pos), remove that segment, and write all the modified buffer back to the file.
Maxwell Chen
|
|
|
|
|
To delete a line in a file, you should:
- Read the file in a buffer.
- Discard unwanted characters from the buffer
- Write the buffer content to the file
Using CStdioFile::ReadString [^] helps.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
You cannot delete a line from a file.
You have to write the rest of the lines to a new file.
Then delete the original file and rename the new file to the original filename.
|
|
|
|
|
See a similar question here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Using C++ and WORD APIs, I am saving a html file as .doc.
In html file I have tags, those are link to external files. These images should also get embedded in my DOC file.
However, I could not save the images in the document itself. Is there any way that I can tell Word programatically to save the images in the document itself ?
Any help would be highly appreciated.
Regards,
Paresh.
|
|
|
|
|
Hello Friends
I am creating win32 based application and in this I am using Lots of Dialogs and Tab Change with Buttons.But when I click from one button to another button It is taking too much time around 8 to 9 seconds.
Is any way to make My UI faster ,so that It opens faster.
Thanks In Advance.
Yogesh
|
|
|
|
|
yogeshs wrote: I click from one button to another button It is taking too much time around 8 to 9 seconds.
There must be something wrong with your code...
Maxwell Chen
|
|
|
|
|
I checked all the things.But I didnt get any unrelated to my code.
Dont we have same other way to increase the speed?
Thanks
|
|
|
|
|
The first priority thing is to find out which part of your code is making it so slow (8 ~ 9 sec response time).
Is there any thread in your code?
Is there any loop (for loop, while loop) in your code?
Maxwell Chen
|
|
|
|
|
yeah for loop is there in my code but tht doesnt make any difference.
|
|
|
|
|
Nah, you're missing the point: if the UI is sluggish the way you depicted, there must be something wrong in your code (or you are using a 286 machine).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Unless the same delay happens when you do things in other software on your machine, then the problem is in your code.
The trick is to narrow down what is happening during that delay.
If it's really long, maybe you could run your code from a debugger, and break into it during that delay.
Or use Spy++ to see all the messages happening during that time - maybe you do something "clever" during this time (ie, selection changing in one area, causing a database query till a different box).
Or maybe you work out something every iteration of you loop that you should calculate once outside the loop?
I'm going to stop guessing now, as it's not possible for me to be accurate - I'm just trying to point out that you need to a) admit you have a problem (which you did by posting here on CP), and b) try to hunt it down.
At the very least, use CWaitCursor so the user doesn't think the problem is theirs!
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need contract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|