|
Yes, it is TCP. if it is the problem about Java server,when I tried with Java client,then the java server is OK.
|
|
|
|
|
hmm I don't know what's different between the two (I'm not a java programmer).
I don't know what would be different besides possibly structure format and/or byte ordering in
the data sent back and forth. This should be relatively easy to debug. The data either gets there or it doesn't
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Now I solved the problem. In java side, I used a "readLine()" from socket,
but in C side, I did not put a "\n" at the end of the data. that is the reason.
anyway, thanks for your analysis on the issue. now my problem is: if I use a "char*" buffer with fixed size to receive data from Java, then the original format or structure will be completely destroyed, so how to restore the data format? is there any function available to do that?
your help will be appreciated!
|
|
|
|
|
xyhan wrote: if I use a "char*" buffer with fixed size to receive data from Java, then the original format or structure will be completely destroyed
Destroyed how? If you need to keep received data then you'll need to either copy the received
bytes to another location or create separate buffers to receive bytes into.
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
Is there such a thing as a fixed size char* buffer in C++ (did you mean a char array??)... maybe your problem is jumping between languages, memory handling or data structure padding (the binary layout of transferred data maybe different than expected). Hard to say without more information. Code and debugging output would help, please show used data structures too.
/M
PS: Actually I ment show it to Mark S, because he will as usual answer earlier than me in socket threads
|
|
|
|
|
Hi.
I have made a dll project in VC6.
When I add #include<afx.h> the following error occurs.
I tried to remove #include<windows.h> from stdafx.h but that didn't help either.
..\vc98\mfc\include\afxv_w32.h(14) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
|
|
|
|
|
You could try using std::string. But, I'm sure there are ways to get CString included. Why don't you work out the header it's in, and just include that ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
MohammadAmiry wrote: When I add #include<afx.h> the following error occurs.
Include afxwin.h and remove afx.h and windows.h.
|
|
|
|
|
now the following errors occur:
Compiling...
StdAfx.cpp
Compiling...
Macro2.cpp
Linking...
nafxcwd.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in Macro2.obj
nafxcwd.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in Macro2.obj; second definition ignored
Creating library Debug/Macro2.lib and object Debug/Macro2.exp
Debug/Macro2.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
Creating browse info file...
Macro2.dll - 2 error(s), 1 warning(s)
|
|
|
|
|
|
Please refer this[^]
Regards,
Paresh.
|
|
|
|
|
I am working on implementing a CListCtrl derived class that functions similar to a control bar. Each icon functions like a button, icon only with no text assigned, and the layout (# of rows/columns) is adjusted as the size of the control changes. All the icons are displayed packed together with a single pixel separating them vertically and horizontally. I have just about everything working, but have run into one problem I cannot find a solution for. When there are multiple rows displayed in the control, even though no text is displayed for any icon, space for the text is being calculated. Clicking on an icon in a row other than the top row results in the icon in the row above being selected - if the click happens in the space where the text of the upper item would appear, if there were any. To put it another way, the space where text would appear for icon in Row A overhangs the icons in Row B. Clicking in this 'overhang' space results in the icon in Row A being selected, while visually it appears that the click happened well within Row B.
Any ideas on how to make the list control not calculate the space for the text label?
|
|
|
|
|
You may want to look into handling WM_MEASUREITEM . See this[^] article.
/ravi
|
|
|
|
|
In my application,I have access modeless property sheet from dll. In this, propertypage's "pretranslatemessage" not called.
Ex:
Exe <============ Dll
(Application) (Propertysheet and pages)
thanks in advance.
Sakthivel
|
|
|
|
|
Is there a specific question you wish to ask?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Yes, David.
I need to access the "pretranslatemessage", in modeless propertysheet, so for any setting or else to do.
Thanks,
Sakthivel
|
|
|
|
|
So what's the problem? Is your ClassWizard broken?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
My propertysheet has 5 pages, each page has it's own pretranslatemessage. but page pretranslatemessage not work and "tap key" not work(for switch the control).?
so how to access pretranslatemessage.?
|
|
|
|
|
If you are using MFC, is each dialog's BEGIN_MESSAGE_MAP() correct?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I'm trying for automatic documentation in MS powerpoint.I'm using MS wrapper classes associated with "msppt9.h".I've inserted pictures.Now using shape.AddTable,I've inserted table with 14 rows and 4 cols.I can't reduce the size of the table.I can't insert text in the table also.
Please help me.
|
|
|
|
|
i'd suggest you attacked the problem from the scripting side of Powerpoint
i.e. write powerpoint scripts inside powerpoint to do what you want first.
bryce
|
|
|
|
|
How I can write?Any link is there for start?
|
|
|
|
|
Hello, I want to write an ISAPI extension dll using MFC (in Visual Studio 2005). every book I read, said we should create an MFC ISAPI Server extension project from File->New menu. but my Visual studio has not this template. what should I do?
please help.
|
|
|
|
|
Ali Tavakol wrote: but my Visual studio
And what version is that?
led mike
|
|
|
|
|