|
See here[^] and search for "requireAdministrator"
|
|
|
|
|
That's a very useful document, thank you. But where can I find an example of the actual syntax required?
The manifest appears to be an XML document, so where exactly does the "requestedExecutionLevel" item go?
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
Nevermind! I found it further down in the document, thanks!
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
Hi,all,
I used java for a server and C(winsock) for a client. now the server
can be activated by the client's connect(...) function and then can send data to the client. the client can correctly receive the data from server and then correctly send data back(it can correctly return the bytes sent) but the server can not be activated by the data(it blocked there when it try to read data from the socket even if the client send a lot).
I spend all most one day but can not get the solution, any helps will be appreciated!
Paul
|
|
|
|
|
From your statements it seems to me the problem is on the java server side...
unless...
Even if send() returns the number of bytes "sent", that doesn't mean the bytes got received by
the other end, or even made it that far.
Is the protocol TCP?
Mark
"If you can dodge a wrench, you can dodge a ball."
|
|
|
|
|
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.
|
|
|
|