|
Nikhil Trivedi wrote: But If I want the return value of the jar file into the visual C++ application, how can I get it ? Does anyone know about it then please help me.
See here and here. Using these examples, you should be able to get the output of java.exe.
"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
|
|
|
|
|
Hello dear friend,
It worked. Now I want to call a function from the jar file and want its return value in the calling visual c++ application. Do you know how to do this ?
Any help or advice is appriciated.
Nikhs
Nikhil Trivedi
|
|
|
|
|
hi
I am still a beginner but I should use a owner-draw tab control in my project,though it is a hard topic for me.My question is that how can I change the color of the title buttons of a Tab control?Is there anybody who knows the answer and wants to answer?
Thanks
-- modified at 8:12 Tuesday 24th April, 2007
|
|
|
|
|
Did you see tab section on the codeproject it has articles about this subject
|
|
|
|
|
Hi, just wrote a message but I don't get a solution to my problem so I retry:
I need to manage an ActiveX component created on the mainWnd of my App, into a thread.
In particular I need to fill a grid (as I just said, created in the MainWnd) from a thread (on the Run() function), so while the app go on.
I pass to the thread the grid's pointer but at run time an Error messageBox appears that say "Invalid pointer value".
How can I solve it?
Thanks.
|
|
|
|
|
Hiii all,
I need to make text bold in a read only edit control .Can u suggest me how to do this
Thanks
|
|
|
|
|
Try this
CFont font;
VERIFY(font.CreateFont(
12,
0,
0,
0,
FW_NORMAL,
FALSE,
FALSE,
0,
ANSI_CHARSET,
OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,
DEFAULT_PITCH | FF_SWISS,
"Arial"));
m_cEdit.SetFont(&font);
VIBIN
"Fool's run away,where angle's fear to tread"
|
|
|
|
|
vibindia wrote: FW_NORMAL, // nWeight
You want to say FW_BOLD , isn't it?
Prasad
MS MVP - VC++
|
|
|
|
|
ya in nWeight the Boldness has to be given
Constant Value
FW_DONTCARE 0
FW_THIN 100
FW_EXTRALIGHT 200
FW_ULTRALIGHT 200
FW_LIGHT 300
FW_NORMAL 400
FW_REGULAR 400
FW_MEDIUM 500
FW_SEMIBOLD 600
FW_DEMIBOLD 600
FW_BOLD 700
FW_EXTRABOLD 800
FW_ULTRABOLD 800
FW_BLACK 900
FW_HEAVY 900
VIBIN
"Fool's run away,where angle's fear to tread"
|
|
|
|
|
FW_BOLD in place of FW_NORMAL will do. Why would you suggest FW_NORMAL for some who wants to render bold text?
found at bash.org
[kernx]|.|.|.|.|.|.|.|
[kernx]sorry, wrong window
[beox33]say me why in the f*ck will you type that in any window
|
|
|
|
|
brahmma wrote: Why would you suggest FW_NORMAL for some who wants to render bold text?
Yet another example of "failing to fully read the question."
"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
|
|
|
|
|
Thanks for the suggestion.....
Here i want to change the font to bold only... other settings remaining the same.to use this i have to set all other parameters for which i donno the previous set values...
when i use this size of text .. and all other settings r getting changed...
how can i overcome this..
|
|
|
|
|
You can get current font from dialog, and then modify it to bold. Refer follwoing snippet,
CFont* ptemp = GetFont();
LOGFONT lf;
ptemp->GetLogFont(&lf);
lf.lfWeight = FW_BOLD;
CFont Temp1;
Temp1.CreateFontIndirect(&lf);
SetFont(&Temp1);
Prasad
MS MVP - VC++
|
|
|
|
|
I have created a custom menu which is independant from CMenu.
It is created as a child window with desktop window as parent so that it can be shown without affecting the active state of the main window where the menu is used (Same as a normal menu do).
But I am not certain about keyboard handling. Since the menu window has no focus, the keyboard events cannot be captured in normal way.
- NS -
|
|
|
|
|
Use DirectX
OR
Use Interrupt Hooking
|
|
|
|
|
|
sawerr wrote: i really confused about where the stack frame of func. is
What do you mean by where it is?
The stack is a reserved area of memory pointed to by a CPU stack pointer register.
Each thread has its own stack.
For compilers that put local variables on the stack, the stack frame is the block of stack area
memory big enough to hold the local variables.
I don't know if a stack is required by the C/C++ language. Every CPU I've used had a stack and
that stack is used for local variables, but I suppose local variables could be stored anywhere a
compiler chooses to.
A typical stack pointer points to the next available byte in the stack, working downword in
memory. A typical C function call will first "push" the return address onto the stack,
decrement the stack pointer by the size of the return address, and call the function.
On entry to the function, if local variable storage is needed, the compiler will make a stack
frame by subtracting the number of bytes needed from the stack pointer. At the end of the
function, the stack frame is removed by adding the same number to the stack pointer. The
return address is then "popped" from the stack and used to resume processing at that address.
This is Computers 101 stuff - maybe reading some articles on how CPUs work will help
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hi all
<br />
CDataSource MyData;
<br />
MyData.Open("MyProgram","127.0.0.1@MyData","user","Password");
this code generate, errors and I can't anderstend why.
|
|
|
|
|
david bagaturia wrote: this code generate, errors
Which errors ?
You need to give much more information when you ask a question, it is not the first time that people need to ask you for more information about your problem. If you want an answer, then you should describe your problem in more details.
|
|
|
|
|
david bagaturia wrote: this code generate, errors...
Are they small, medium, or large errors?
"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 prefer "big".
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Where's error? error to connect or error on c++
|
|
|
|
|
Sorry abut detail's.
I write this simpel code, but I have Error message wen I Build it.
I cant see my errors, can help?
|
|
|
|
|
david bagaturia wrote: ...but I have Error message wen I Build it.
Such as?
"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
|
|
|
|
|
Again its difficult to guess you said "when you Build it" I cant say anything need to more info.
|
|
|
|