|
Hi,
I wrote a dll which contains classes using stl symbols (valarray).
First, this compiled well, but crashed at runtime. I then added to my code the following lines :
#ifdef EXP_STL
#define EXPIMP_TEMPLATE
#else
#define EXPIMP_TEMPLATE extern
#endif
EXPIMP_TEMPLATE template class EXP_STL std::valarray<double>;
Now, it doesn't compile, wiht error C2470 (sorry, but my error description is in French ...).
What happens ? What must I do to make it work ?
Thank you very very much.
|
|
|
|
|
Hi,
First of all, I'd try making sure that the executable and the DLL are built with exactly the same dynamic version of the run-time library. Hopefully this will solve your problem away. If it doesn't, please report back and we can think it over again.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Yes, the executable and the dll were built at the same time.
But after hours spent on the net, I found a solution to my problem, which seems (not fully tested yet) to work with <vector>.
But the problem persists with <valarray>. To be more precise, I have an unresolved external link error which concerns the <slice_array> class. And here, I have no idea why...
Thanks.
|
|
|
|
|
Sorry fo my first answer. Some words were missing because I had problems with the HTML formats...
Ok, let's write it again. I said :
Yes, the executable and the dll were built at the same time.
But after hours spent on the net, I found a solution to my problem, which seems (not fully tested yet) to work with the class VECTOR.
But the problem persists with VALARRAY. To be more precise, I have an unresolved external link error which concerns the class SLICE_ARRAY. And here, I have no idea why...
Thanks.
Could you help ?
|
|
|
|
|
Hi,
I am using a CView to display a GDI+ image. My problem is when I change the image displayed i want to erase the background first. Invalidate(true) appears to have no effect, does anyone know why this is the case? Any clues at all would be appreciated!
Cheers
Rich
|
|
|
|
|
Hi,
first of all, sorry for posting on the VC++ board, but there is no networking board here, and due to the fact that I am using VC++ ... here I go:
I got a question on SOCKETs.
I have a SOCKET listening on a specified port.
When a client connects, I call accept. Due to specific reasons I do not call recv after this directly. There are about 1-2 seconds after the accept call until I loop on recv. Now my question: what happens with the data sent from the client to my SOCKET in the meanwhile? Is it lost? Is is buffered and I receive it when I then call recv?
Thanks a lot!
Chris
|
|
|
|
|
If it's TCP, you needn't worry. It's buffered, and if the buffer space runs out the other side will know this.
If it's UDP -- it will get buffered on your side until the buffer runs out. Then new packets will get lost.
If it's another protocol -- well, that's up to your protocol stack.
-- Nitzan
|
|
|
|
|
Thanks Nitzan!
I am using TCP and this is also what I thought.
Chris
|
|
|
|
|
It's buffered... up to a point, say, several 10s of K
|
|
|
|
|
I am trying to write my very first C++ program. This is loosely a port from a running program in a Rabbit 2000 8-bit microprocessor (the original program is in Zworld Dynamic C).
My program needs the following:
1. To eventually run as a service in Win 2003 Server
2. Multithreaded to handle up to 16 concurrent identical threads
3. Access my realtime hardware attached to 1-4 COM ports each of which must be synchronized (presently using a Semaphore)
4. Read data from a table in Access2000 (.mdb file) that I have already programmed. Using ADO, DAO?
5. Write data to another table in the same .mdb file (logging information)
6. My 'real-time' requirement is VERY slow - response times of 1 second or more are entirely acceptable. (I bet that's really different from other applications!)
I really know what the program has to do, but am completely unfamiliar with C++ implementations. I have both Visual Studio 6.0 and Visual Studio .NET 2003 installed as development platforms. I can use either for my project.
What I need is access to an experienced programmer who can help me structure my program to run in C++. I am willing to pay a reasonable hourly rate for such help.
Any takers?
best to email me:
JohnAlderman@mindspring.com
John Alderman
|
|
|
|
|
seems that something like IVR, (using Dialogic cards.??)
anyway..
I AM READY TO HELP YOU.
|
|
|
|
|
Hi, I have a problem with Microsoft Developer Studio (I'm using version 4.0). My source file entry points (in the righthand pane) seem to have gotten out of sync with the class view index (in the lefthand pane). The upshot is that if I click on a given function in the class view, the scrolling in the lefthand pane does NOT give me the position of the entry point for that function definition - it is some way removed. I have tried erasing the .clw file and regenerating it, but that does not cure the sync problem - I guess that must be controlled by some other project file. Can someone tell what file that is, and how I regenerate it to give me the correct synchronisation. Thanks in advance !
Doug
|
|
|
|
|
OK - I found a clue in a few posts above this one - for reference, erasing the .ncb file (Developer Studio will regenerate it) will sync the ClassView functions with the source file. I'm fixed !!!
Doug
|
|
|
|
|
Suppose i'm having a SW that needs to be updated from the net (like ACDsee or acrobat reader)
how can i do that.
|
|
|
|
|
When I try to compile *.c files in Visual Studio, it lists me a lot of errors, like:
error LNK2019: unresolved external symbol __imp__send@16 referenced in function _main
and all this errors are referenced to identifires from library "winsock2.h"
Please tell me, what to do. Thanks.
|
|
|
|
|
link to wsock32.lib
Project Settings -> Linker -> Input -> additional dependencies in VC.NET
If you can keep you head when all about you
Are losing theirs and blaming it on you;
If you can dream - and not make dreams your master;
If you can think - and not make thoughts you aim;
Yours is the Earth and everything that's in it.
Rudyard Kipling
|
|
|
|
|
How to clean start->run menu MRU items without reboot?
if I delete corresponding registry key, nothing is changed before reboot
thanks in advance.
thanks, Monk.
|
|
|
|
|
I'm not sure if this will help but try this:
SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, (WPARAM)NULL, (LPARAM)NULL);
Hope this helps
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
|
i am wondering how to write to a file without sending out a system wide notification that it was written to... this is because i want to modify an RC file pre-build and i dont want VC to tell me that it was modified and ask me to reload it
thanks
r -€
|
|
|
|
|
|
I have a text file that writed in VietNamese font code (ex: TCVN3,VNI..), I want to recoginize the code that it was typed. Please help me
|
|
|
|
|
how can i send an email to abc@rediffmail.com/yahoo.com/hotmail.com using SMTP.. ??
|
|
|
|
|
via WinSock and the SMTP Protocoll
ftp://ftp.rfc-editor.org/in-notes/rfc2821.txt
but this would cause a lot of trivial stuff to do so you could use the MAPI
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_mapi1book_c_mapisendmail.asp
|
|
|
|
|
If you are using MFC you can try this class:
http://www.naughter.com/smtp.html
Best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|