|
No idea, once again there is not enough information for me to guess.
|
|
|
|
|
In DLL i have written the code for Context menu in vs2010 using COM
i derived the class CRsEraser : public IContextMenu, public IShellExtInit
this IShellExtInit and IContextMenu is are com class
when use it
HRESULT __stdcall CCmpntFactory::CreateInstance (IUnknown *pUnknownOuter, const IID& iid, void** ppv)
{
if(pUnknownOuter != NULL)
return CLASS_E_NOAGGREGATION;
CRsEraser *pCmpnt = new CRsEraser;
if (pCmpnt == NULL)
return E_OUTOFMEMORY;
HRESULT hr = pCmpnt->QueryInterface (iid, ppv);
//////////////////////////////////////////////////////////////////////////
// Release the IUnknown pointer
pCmpnt->Release ();
return hr;
}
CRsEraser *pCmpnt = new CRsEraser;this part showing its abstract class .
in 32 bit compile its working fine same when configure to 64 bit its throwing the error what i have mention earlier .
how i configure:
1 Open your Visual C++ Solution
2 Choose Build->Configuration Manager menu
3 Inside the Configuration Manager window, change the ‘Active solution platform’ to x64. If you don’t have any, you would need to create one by selecting the ‘New..’ drop down item. Copy settings from your Win32 platform.
4 Now rebuild your solution.
|
|
|
|
|
please help me out of this ...
dll is getting register in 32 bit machine same code i compile on 64 bit machine but failing to register
|
|
|
|
|
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
|
|
|
|