|
Is there a lib included in the package you downloaded?
If yes, you have not added it to your project. ( project, options, linker )
If you have sourcecode, add the sourcefiles ( the .c or .cpp ) to you project.
Your trace shows many warnings because you initialise some variables you never use and then the constructor from MysqlConnection is not found.
|
|
|
|
|
there is two librarys in different folders, there is mysql++.lib and libmySQL.lib
if you download the zip file you will see the chaos iam on about
how do you add them in vc++6 if they do have to be added, they way abou tyou mentioned appears to be for a later version.
many thanks
|
|
|
|
|
In VC6, go to project ment, the to properties ( ok, I have a german version, so I don't know the exact name. )
There you find on the left side your build-targest, and on the right side a tab-control.
In the tab, ther is a page called "linker". Go to it, There is a edit "Objects, libs". Add your library there. Then, click on category and point to input. There add your additional library-path. That's all.
Good luck!
|
|
|
|
|
did all that and now get the error
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
so if select the option in properties of "ignore all default libraries" i then get over 200 errors!!
|
|
|
|
|
Hi all,
I want to "control" an application with a second one. The app it there to control a Hardware and I don't have the code
It is command-based: I can write a command in a CEdit-like window, and the response is displayed in the same window. ( a Hexdump, maybe )
Is it possible to grap the contents of this window and to write ( from my own app ) into it?
Somethink like enumerateWindow and then access over the clipboard?
Thanks , Hardy.
|
|
|
|
|
If you have a handle to the (edit) control, you can use GetWindowText() to get its contents.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: If you have a handle to the (edit) control, you can use GetWindowText() to get its contents.
I think its not so simple. The Application ( A1 ) to control the Hardware is ready and closed.
I am writing a new App ( A2 ) , in mfc, to do some extra-work. Now I want to access A1`s main window. I want to write to it and read from it from within A2.
Thanks,
Hardy.
|
|
|
|
|
Hardy_Smith wrote: The Application ( A1 ) to control the Hardware is ready and closed...Now I want to access A1`s main window.
How do you expect to read from a non-existent window?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
With closed I mean closed-source. I don't have the source.
The window itselve is open, of course.
Sorry, it was not clear.
|
|
|
|
|
Like I said before, get a handle to the (edit) control (using FindWindow() ), then use GetWindowText() to get its contents.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
it seem no different between them, dialogbar is just no-title dialog.
am I right? why do I need the dialogbar other than dialog?
|
|
|
|
|
here is[^] what a dialog bar is made for...
|
|
|
|
|
in MFC, I know doc and view is created in ProcessShellCommand with CSingleDocTemplate.
but I wanna get current view pointer so that I can hide it by ShowWindow(getView(), SW_HIDE);
|
|
|
|
|
First,
pos = AfxGetApp()->GetFirstDocTemplatePosition();
ASSERT(pos);
pTemplate=AfxGetApp()->GetNextDocTemplate(pos);
POSITION docpos=pTemplate->GetFirstDocPosition( );
get the first DocTemplate. Then you can enumerate your views.
CDocument *pDocument=NULL;
while (docpos)
{
pDocument = pTemplate->GetNextDoc(docpos);
ASSERT(pDocument);
POSITION viewpos = pDocument->GetFirstViewPosition();
while (viewpos != NULL)
{
...
}
}
Hope this helps,
Hardy.
|
|
|
|
|
POSITION pos = GetFirstViewPosition();
while (pos != NULL)
{
CView* pView = GetNextView(pos);
pView->UpdateWindow();
}
if GetFirstViewPosition return a first pos.then GetNextView will return second pos view pointer. Am I right?
|
|
|
|
|
What's the best way to pass the large char array (could be up to 3000 characters long) to dll. I've tried to declare the char variable in main program,like this (char longArray[3000]) but it seems to cause eAccessViolation error during runtime.
I need to pass the large char array to my customized dll for data processing. I have already created about 12 different data processing algorthms but will have the same parameters.
Question me if you don't understand what I'm trying to explain. thanks!
|
|
|
|
|
Did you try to use the debugger to see where it crashes ?
|
|
|
|
|
|
Project Line Counter[^]...
if you want to advertise, post here[^], otherwise, write an article and provide the source.
ps: there not even some doc about it
|
|
|
|
|
.. and I am still search wth was that program installed...
|
|
|
|
|
sorry ?
i don't understood you sir...
may you please rephrase ?
|
|
|
|
|
I could understand myself either ... Sorry getting late here.
What I meant was, after installing that program, I couldn't find out in which folder was the program was being installed. No short cut in the Start->Program, nothing in the program files folder, nada.
|
|
|
|
|
you did download the zip ? lol
when i see such applications on the net with no description, no screenshots, no security that the program is secure, i don't even take the risk at installing it.
moreover, Project LineCounter is much more accurate at line counting as it counts the number of actual statements !!!!
|
|
|
|
|
*shrugs* I was bored.
Maybe it finally makes me reinstall the whole OS, it's way overdue already.
|
|
|
|
|