|
garfield185 wrote: I run the app and it said that the file "MFCO42D.dll" was missing. So I added.
1. When an application is delivered for thrid party usage, it must be build in the release verion. I doubt your application is now build using the debug configuration( thats why a dependency to MFC42D.dll, MSVCRTD.dll etc came )
2. Use the Dependeny walker to find out the necessry dll need by your application and add it to your installtion setup( Ignore the dll's coming with the OS ).
|
|
|
|
|
I built as Release before getting the files to the setup, now there are some strange errors like
error LNK2001: unresolved external symbol ...
many times and about 2 different obj files.
What does it mean?
Time to come clean...
Vive y deja vivir / Live and let live
Javier
|
|
|
|
|
garfield185 wrote: error LNK2001: unresolved external symbol ...
may be some lib's are missing. Can you show the full error msg?
|
|
|
|
|
Here.
//Some stupid warnings before..
Generating Code...
Linking...
RutinasBD.obj : error LNK2001: unresolved external symbol _dbdead
RutinasBD.obj : error LNK2001: unresolved external symbol _dbuse
RutinasBD.obj : error LNK2001: unresolved external symbol _dbopen
RutinasBD.obj : error LNK2001: unresolved external symbol _dbsetlname
RutinasBD.obj : error LNK2001: unresolved external symbol _dbsetlogintime
RutinasBD.obj : error LNK2001: unresolved external symbol _dblogin
RutinasBD.obj : error LNK2001: unresolved external symbol _dbmsghandle
RutinasBD.obj : error LNK2001: unresolved external symbol _dberrhandle
RutinasBD.obj : error LNK2001: unresolved external symbol _dbsqlexec
RutinasBD.obj : error LNK2001: unresolved external symbol _dbcmd
RutinasBD.obj : error LNK2001: unresolved external symbol _dbnextrow
RutinasBD.obj : error LNK2001: unresolved external symbol _dbbind
RutinasBD.obj : error LNK2001: unresolved external symbol _dbresults
RutinasBD.obj : error LNK2001: unresolved external symbol _dbclose
SockUdp.obj : error LNK2001: unresolved external symbol ___WSAFDIsSet@8
SockUdp.obj : error LNK2001: unresolved external symbol _WSAGetLastError@0
SockUdp.obj : error LNK2001: unresolved external symbol _select@20
SockUdp.obj : error LNK2001: unresolved external symbol _connect@12
SockUdp.obj : error LNK2001: unresolved external symbol _socket@12
SockUdp.obj : error LNK2001: unresolved external symbol _getprotobyname@4
SockUdp.obj : error LNK2001: unresolved external symbol _gethostbyaddr@12
SockUdp.obj : error LNK2001: unresolved external symbol _inet_addr@4
SockUdp.obj : error LNK2001: unresolved external symbol _gethostbyname@4
SockUdp.obj : error LNK2001: unresolved external symbol _htons@4
SockUdp.obj : error LNK2001: unresolved external symbol _WSAStartup@8
SockUdp.obj : error LNK2001: unresolved external symbol _send@16
SockUdp.obj : error LNK2001: unresolved external symbol _recv@16
SockUdp.obj : error LNK2001: unresolved external symbol _closesocket@4
SockUdp.obj : error LNK2001: unresolved external symbol _sendto@24
Release/TMB.exe : fatal error LNK1120: 29 unresolved externals
Error executing link.exe.
TMB.exe - 30 error(s), 25 warning(s)
Time to come clean...
Vive y deja vivir / Live and let live
Javier
|
|
|
|
|
garfield185 wrote: SockUdp.obj : error LNK2001: unresolved external symbol _WSAGetLastError@0
This is because you havent include the Ws2_32.lib in the project setting( project settings->Link-> In the object/library module edit box, enter Ws2_32.lib )
garfield185 wrote: RutinasBD.obj : error LNK2001: unresolved external symbol _dbdead
You haven't include the lib file corresponding to the function dbdead(). Find it and add it in the same location as above( May be you can get it from the debug configuration ).
|
|
|
|
|
may be the second one is ntwdblib.lib .I found it from the first post.
|
|
|
|
|
Release and debug configurations have both separate options, so everything that you set for the debug version (like include paths or additional libraries), you should also set it for the release version.
|
|
|
|
|
?????
Can you explain it? Do you mean that the path I have been using may not be the correct ones in the release version? So, how do I know the correct paths in that case?
Time to come clean...
Vive y deja vivir / Live and let live
Javier
|
|
|
|
|
What I mean is that:
If you changed some settings in the project properties when working in debug mode (for example, you added a new include path or you specified a library to link your project to), all these settings will be 'lost' when you switch to release mode. So, you have to configure all of that once again. A way to avoid that (in VS2005) is to choose "All configurations" when you do a change in the project properties.
It seems that in release mode you are not linking against the socket library (and you do that for the debug version because you don't have errors when building).
|
|
|
|
|
Ok, I know understand.
When changing to release version is like reseting the options, so I have to fill again all the option such us libraries. That was the error.
Thanks!!
Time to come clean...
Vive y deja vivir / Live and let live
Javier
|
|
|
|
|
garfield185 wrote: When changing to release version is like reseting the options
Not totally true. In fact, every configuration has its own properties, hopefully. Hopefully because for specific things they need to be different: when you build in debug mode, you want to link with debug libraries and in release, you want to link with release libraries.
But most of the settings are the same. It can be quite annoying to set all the settings once again, that's why there is an option (in VS2005) to save the changes for all configurations. When you open you properties, it is in the top-left of the window ("Configuration").
|
|
|
|
|
Cedric Moonen wrote: ...that's why there is an option (in VS2005)...
It's also in V6.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I wasn't sure (long time that I didn't use VS6) so I preferred not to say something wrong
|
|
|
|
|
Fair enough. I just wanted everyone to know that it wasn't a new feature.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Has any people worked on Reuters RFA API C++ .
I need urgent help for fetching data from there server through this API.
Lot of samples in the API. Can any one help me.
RajeshGupta
|
|
|
|
|
Any particular error that you are getting when using this API? I've worked on this.
|
|
|
|
|
I am not able to integrate RFA with my Web service.
|
|
|
|
|
Hi all,
Which is the best engine to do OCR in vc++ like google ocr or MODI(microsoft object document imaging),or ......?
Thanks in advance....
|
|
|
|
|
I need to write a debugger which will execute an process and I need to get notification when that process will write or modify any thing on the hard disk. Can we keep watch on any process for getting info when that process will write to hard disk? I have read something about "Win32 Debug API". Can any one guide me or give me any demo code for this?
|
|
|
|
|
chandni_chandrakant_maheta wrote: Can we keep watch on any process for getting info when that process will write to hard disk?
In short: no.
Slightly longer: yes, but it requires a filter driver that you can connect to from user mode the way Process Monitor by Mark Russinovich[^] does.
Perhaps you are able to use Process Monitor instead of developing something on your own.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Thanks a lot for your reply. I was thinking to build a file system filter driver. What do you think can I keep watch on a process by file system filter driver? According to me, if we load a filter driver, we need to restart the computer. Can we load a filter driver with out rebooting?
|
|
|
|
|
The reason why I gave the short answer 'no', is because this way is difficult and there's a big risk for messing up the file system making the machine impossible to boot.
I strongly recommend that you seriously try to find another solution.
In any case, if you continue the filter driver track, I cannot help you.
As for your questions...
chandni_chandrakant_maheta wrote: can I keep watch on a process by file system filter driver?
Not exactly, you'd have to filter the file accesses from all processes.
You may do the filtering in the driver.
chandni_chandrakant_maheta wrote: According to me, if we load a filter driver, we need to restart the computer.
Correct in this case since it's about filtering the file system driver.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
I have a multiline edit control. This control should be populated with strings with each string representing an event information. I want to know how to Set the text without clearing the text which is already populated. So basiclaly I want to concantenate the text here. Is Using GetWindowText (Gets the historical data) and SetWindowText (Historical data + new) suffice.
|
|
|
|
|
Yes, if you use CString you can simply do that. Don't forget to add "\r\n" to start a new line.
|
|
|
|
|
I saw something like the following:-. Was wondering whether it could be used.
void CEditCtrlTutorialDlg::OnIn() <br />
{<br />
UpdateData();<br />
m_Edit8.SetSel(0,-1);
m_Edit8.Copy();
m_Edit5.Paste();
}
|
|
|
|