|
error C2664: cannot convert parameter 2 from 'MSTR' to 'char *'
|
|
|
|
|
|
What is the definition of MSTR and where are you trying to use it?
|
|
|
|
|
ksjbharathi wrote: error C2664: cannot convert parameter 2 from 'MSTR' to 'char *'
Do you mean BSTR ?
Veni, vidi, vici.
|
|
|
|
|
Could you tell how to "redraw the thumb" in my skin scroll bar (with ListBox) ?
I don't have a algorithm to solve
This is a mini clip to explain my trouble ! (The thumb doesn't moved ????? )
This is my project!
Please help me!
Thanks for all!
modified 24-Jan-13 21:04pm.
|
|
|
|
|
hi all,
i want to design text on my dialog box whether Text is in Static control or draw the text using DrawString .
i want text looks with single or multi outline,gradient,font,shadow or glow even any thing else
help me for this.
thanks.
modified 24-Jan-13 5:38am.
|
|
|
|
|
You can use the Custom Draw[^] feature of all Windows controls.
|
|
|
|
|
have any example for this...
|
|
|
|
|
The link given by Richard MacCutchan has the examples (as a link).
|
|
|
|
|
Did you even bother to go and read the section I gave you the link for?
|
|
|
|
|
|
|
Look at the error messages. They are telling you that certain external functions that you reference cannot be found within the project. Find out where these are supposed to be defined and ensure that they are externalised.
|
|
|
|
|
You are correct but how to find its definition?
|
|
|
|
|
you can find it in SimpleProfiler/ProfilerCallback.cpp
|
|
|
|
|
john5632 wrote: how to find its definition? Well, it's your code so presumably wherever you declared those methods. If they are part of some library that you are using then ensure that the library is included in your linker options.
|
|
|
|
|
I was a graduate student in Tsinghua University in China.
I'm programming about NC Code Simulation System.
In this program, I used OpenCSG Library to perform a Solid Modeling.
By the way, the sample program supported by library which is programmed in Win32 App, is well operate, but the program that I produced in MFC doesn't well operate. The error is that OpenCSG doesn't draw solid.
How to use OpenCSG Library in MFC?
Please help me.
Best Reguards.
谢谢!
CODE PROJECT MEMBER 安胜(AnSheng)
|
|
|
|
|
Hi
I have created a console application (.exe), and we have used SetConsoleCtrlHandler for signal handling i.e. "CTRL + C" and Log Off and Shutdown Events.
We are properly able to handle the "CTRL+C" event but Logoff and Shut down events cannot be handled properly.
Following content is mentioned at MSDN:
========================================================
The system generates CTRL_CLOSE_EVENT, CTRL_LOGOFF_EVENT, and CTRL_SHUTDOWN_EVENT signals when the user closes the console, logs off, or shuts down the system so that the process has an opportunity to clean up before termination. Console functions, or any C run-time functions that call console functions, may not work reliably during processing of any of the three signals mentioned previously. The reason is that some or all of the internal console cleanup routines may have been called before executing the process signal handler.
========================================================
Please suggest how we can properly handle Logoff and shutdown event by our console application.
Or please suggest any other technique (if available) for handling the logoff and shutdown event by the console based application.
Thank You
Ashish Kumar verma
Software Engineer(VC++)
|
|
|
|
|
You need to show the code where you test for these conditions; maybe you are doing something wrong.
|
|
|
|
|
In .NET we have the System.IO namespace providing convenient classes for Sockects and Pipes which ay be used for interprocess communication. How can one implement this in oldskool VC6?
My requirements are as follows.
I am writing a plugin for some legacy software for which there is a SDK which I can only get to compile with VC++6.0 compiler. I want to interface this code with both .NET and JAVA. I was thinking of implementing either a Socket server or Namedpipe in C# to act a a bridge between the VC6 code and .NET/JAVA. Requests from VC6 would be in the form of byte[] arrays and the C# bridge would interpret these requests, route them and eventually reply to the VC6 code which is awaiting a response.
In summary I would like examples of the following in VC++6:
- Use of threads
- Socket/Pipes (or any other interproc comms method)
- Invoking a process (other than a shell call to an executable)
BTW non-MFC is required
Any suggestions would be great.
Best, Y
|
|
|
|
|
|
Thanks Superman,
Exactly what I wanted. Whenever I search msdn I seem to find it have to get relevant results. my only realy experience it with .NET/JAVA and therefore when looking I'm a little non-plussed when it comes to C++/MFC and what is possible.
Great
|
|
|
|
|
If you want to simplify things, rather than use the sockets or named pipes, you might consider these two other options for the .NET part:
1) C++/CLI to generate a bridge DLL from the C# code that loads and runs the VC 6 DLL.
2) PInvoke from C# to load and run the VC 6 DLL.
For the Java part, you might do the process execution or use one of the Java - .NET bridges that exist out there.
Just some other suggestions to consider.
|
|
|
|
|
I would like to display a text status in MFC main frame from anywhere from my code.
I am using standard MFC CStatusBar indicators
static UINT indicators[] =
{
ID_SEPARATOR, // status line indicator
ID_STATUS_00,
ID_INDICATOR_CAPS,
ID_INDICATOR_NUM,
ID_INDICATOR_SCRL,
};
and in main frame message map
ON_UPDATE_COMMAND_UI_RANGE(ID_STATUS_00,ID_STATUS_99, OnUpdateRange)
The processing function is defined , per MSDN
void CMainFrame::OnUpdateRange(CCmdUI *pCmdUI)
When I test post the last message in range
PostMessage(ID_STATUS_99);
the OnUpdateRange gets executed , however, I do not know how to retrieve the correct range message from CcmdUI.
Any help will be greatly appreciated.
Cheers Vaclav
|
|
|
|
|
pCmdUI->m_nID will give you the ID
|
|
|
|