|
It's very interesting.
In my own opinion, it is possible but you need something.
First, Receiver process have to open Sender process(use OpenProcess api with PROCESS_VM_READ) with memory access authority.
Second, Sender process have to allocate class instance on allocated memory located on it's own process memory(I don't know about it but if you use Google, it will appears).
Solving these problems may be difficult and complicated but it is possible, I think.
|
|
|
|
|
Oh yeah, watch out for endian ness.
|
|
|
|
|
HI,
Can anyone help me to find out any sample application to export the CListView data or GridView data into Excel or .CSV format using MFC
Thanks
ASH
|
|
|
|
|
Go to the articles section and search there, you will find many suggestions.
Veni, vidi, abiit domum
|
|
|
|
|
How is the CListView populated? If you have access to the code that does this, then you could export to a CSV from there.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Hi Rajesh,
Any sample code is there? It will be gr8 if you can share.
Thanks,
sma
|
|
|
|
|
I don't have a sample code with me to share, but I will need to write it. However, that takes time and I'll do it if I see that you've put all the efforts that you can.
It will be easier for you to try my suggestion and come back here with specific problems that you encounter during your attempt.
Now to answer it, do you have the code which populates this list view? If so, you could easily insert code into in there to export this same data to a .CSV file.
If not that, you could also read the values off the list view and then export it to CSV. Where exactly are you stuck?
Take one step at a time, and I'll help you through it if you need.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
I have the code which will insert values into list view..Only I need to read the data from list view and export it to excel.
Thanks in Advance
|
|
|
|
|
If I'm missing something here, please correct me.
If you've the code which is inserting the actual values, you could use that same code to create a .CSV file, right? Why do you have to write into a list, and read the same data from the list again?
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
My problem is to how to open the .CSV file and how to write the data into it..
Any sample is appreciated..
Thanks for your reply..
|
|
|
|
|
OK, that makes the problem much simpler then.
With MFC, you could use CFile or a CStdioFile for this purpose. It's very easy, and here's a sample: http://www.codeproject.com/Messages/3136266/Re-Getting-string-from-a-Text-file.aspx[^]
The sample code reads data, but you could easily create the file, and write and read from it with the member functions of this class.
- Create the file by passing the appropriate arguments to the constructor. Example on this page: http://msdn.microsoft.com/en-us/library/7b61hcx0(v=vs.90).aspx[^]
- Write data into it using the WriteString[^] method.
When you create the file, make sure that the extension is .CSV and format your string correctly such that it's comma separated before writing it into the file. Let me know if you need any more help.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
It has two monitor, main and expand monitor.
The expand monitor in the top with higher resolution ratio, and the main minitor in the bottom.
But if I drag a window to the expand monitor and then double click to show maximium, it has problem, it cannot fill of the windows of the expand monitor? why ? It save the main monitor rectangle info, how to change it.
modified 15-Oct-13 5:13am.
|
|
|
|
|
yu-jian wrote: It has two monitor What does - your PC or something else? And, what does this have to do with C++?
Veni, vidi, abiit domum
|
|
|
|
|
I had resolved this problem,
Use EnumDisplayMonitors to judge which monitor the application is in.
And then set the new maxmium position for the application.
|
|
|
|
|
Hi,
I need to set the DisableProcessWindowsGhosting(VOID) function in an application developed in VC6.0
The problem is that Windows.h that comes with that old programming environment does not know this function yet. What do I have to include in order to get access to that function?
|
|
|
|
|
You need to upgrade to a later version of Visual Studio or Visual Studio Express.
Veni, vidi, abiit domum
|
|
|
|
|
The problem is that my app still has to support Windows NT 4.0
Additionally, I guess it is part of the latest platform SDK available for VC6, I just wonder how to configure my project settings correctly...
|
|
|
|
|
You could try getting a later version of the Windows SDK, but you would still need a down version of the app for NT 4.0.
Veni, vidi, abiit domum
|
|
|
|
|
DisableProcessWindowsGhosting() is supported with XP SP1 and later. If your app must support older Windows versions, you must check the version. You can use late binding by getting the function address with GetProcAddress()[^]:
typedef void (WINAPI* LPFN_DisableProcessWindowsGhosting)();
HINSTANCE hInst = ::GetModuleHandle(_T("User32"));
if (hInst)
{
LPFN_DisableProcessWindowsGhosting lpfnFunc =
(LPFN_DisableProcessWindowsGhosting)::GetProcAddress(hInst, "");
if (lpfnFunc)
lpfnFunc();
else
TRACE("DisableProcessWindowsGhosting() is not supported\n");
}
This will also solve your problem regarding the old SDK header files.
|
|
|
|
|
|
well, you asked the question in the correct spot - on that article
Asking it here (again) is superfluous - if you dont get a response from hackzai you may have to narrow the issue down to a piece of code, and then post a specific question here with that code, rather than such an open question
'g'
|
|
|
|
|
Please do not keep repeating the same question. Also, as this is in reference to a CodeProject article you should post in the forum at the end of the article so the author can help you.
Veni, vidi, abiit domum
|
|
|
|
|
This image implies that you can simply import a binary ".exe" resource: http://i.stack.imgur.com/ITdYs.jpg
But how to do this in VS2012 c++? It does not allow me to import an .exe: http://i.stack.imgur.com/zdzbV.png
I'm trying this tutorial:
http://www.codeproject.com/Articles/4221/Adding-and-extracting-binary-resources
modified 13-Oct-13 20:58pm.
|
|
|
|
|
If you have a question about a particular article, you should post it at the end of the article.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Do you know how to solve this problem or not???
|
|
|
|