|
Thanks it helped me
|
|
|
|
|
You may use the CopyImage()[^] function:
BITMAP bm;
GetObject(hBitmap, sizeof(bm), &bm);
HBITMAP hCopy = (HBITMAP)CopyImage(hBitmap, IMAGE_BITMAP,
bm.bmWidth / 2, bm.bmHeight / 2,
LR_COPYDELETEORG);
SetClipboardData(CF_BITMAP, hCopy);
|
|
|
|
|
Thanks I did not know that!
gonna check that out
|
|
|
|
|
Can you guys pl explain me how to call (Syntax) a single query directly through visual studio C++ code and stored Procedures (syntax for multiple queries)? What is the difference between them in calling?
|
|
|
|
|
hi all,
I want to read a excel file on pc where Office is not installed.
any idea how can I do this.
thanks.
|
|
|
|
|
You can use OLE DB[^].
Use the best guess
|
|
|
|
|
is oledb register on all pc.
I search on using excel and find this
http://exceldatareader.codeplex.com/[^]
they provide a dll.
but here example shows use in c# and vb.net how can I use it.
modified 29-Jun-13 6:29am.
|
|
|
|
|
Unfortunately it is not easy, as all the samples I have seen relate to C#/VB.NET. You could use C++/CLI to access the data and then hand it back to your unmanaged code. There are also some articles here on CodeProject[^] that may help you.
Use the best guess
|
|
|
|
|
Hi,I want to parse a csv file using Regex,It contains
1.string Contains "",for example,"It's a "word"" ;
2.string Conatains \r\n
|
|
|
|
|
I would start choosing the right forum.
Veni, vidi, vici.
|
|
|
|
|
What? I can not understand,sorry
|
|
|
|
|
This is the C/C++/MFC forum, while you asked about C# .
As a side note, a quick Google search gave me about 830,000 results[^].
Veni, vidi, vici.
|
|
|
|
|
You can google for that.
Also, if it matters, a parser is probably faster than a regex.
|
|
|
|
|
you can post it at the c# forum
moonman
|
|
|
|
|
Hi,
I need do wirte Unit-testing(Automated testing)code for our project. Some of the modules are developed in VC++(Using MFC).Its a Multiple Document Interface[MDI] application.
I tried to use CPPUnit framework ,but i'm getting difficulties. Also CPPUNIT don't have TestCoverage facility.
Hence kidly guide me how can i write test cases for pure MFC code. I mean the Unit testing code can handel MFC library & also the tool can able do the TestCoverage analysis.Any best & friendly Unit tesitng framework is avaialblle?
Kindly help me out. Thanks in advance
modified 30-Jun-13 1:04am.
|
|
|
|
|
Since nobody answered so far...
I've looked around some time ago, and found that almost all frameworks available for Windows require .NET, or at least managed C++. One of the few that doesn't is WinUnit: It requires some work for you (creating test classes for each class to test), but otherwise saves a lot of work by extracting the test cases directly from the binaries.
I haven't yet tried it out myself because it wasn't really what I required, but it may be useful for your purposes. Should be easy enuogh to google for, and IIRC the documentation even contains references of alternate solutions.
|
|
|
|
|
Hi,
I have a list control on a dialog box. I use
LVS_EX_CHECKBOXES functionality to put check boxes in the list control. I want to put the checkboxes in any other column of list control.
How it can be implemented.
Please share any sample code if you have.
Any help will be appreciated.
Regards,
Mbatra
|
|
|
|
|
|
If you want to have a single column with checkboxes, you may rearrange the order of the columns, in such way to have checkboxes on the desired column ...
You can also check here[^], on this list you can put any kind of control, on any column ...
|
|
|
|
|
I hope someone can give me some proposal. I find the PDFMakerAPI.dll in acrobat. so i want to use the PDFMakerAPI.dll to convert in VC++.How to convert office to pdf with acrobat in VC++?
|
|
|
|
|
The first thing you need to do is study the documentation for the DLL.
Use the best guess
|
|
|
|
|
Hi,
I am getting back a 1 from CreateProcess indicting success however the process never takes off
I can cann't find it in TaskManager Either
Here is the code this code used to work I just cleaned up my computer tried re-building the app
strncpy(&herc_command[0],"HERC_CMD.EXE ",13);
memset(&si,0,sizeof(si));
si.cb= sizeof(si);
sa.nLength = sizeof(sa);
sa.lpSecurityDescriptor = NULL;
sa.bInheritHandle = TRUE;
hutil_module = GetModuleHandle("HENGINE");
hercgui_addr = GetProcAddress(hutil_module,"hercgui_proc");
if (hercgui_addr == NULL)
errcd = GetLastError();
strncpy(&herc_parm[0],&hercgui_addr,8);
return_code = CreateProcess((LPCSTR) &herc_command[0], (LPCSTR) &herc_parm[0], (LPCSTR) &sa,
NULL,
TRUE,
(DWORD) NULL,
NULL,
NULL,
&si,
&pi);
if (return_code == 0 )
errcd = GetLastError();
|
|
|
|
|
Please ensure the target is not started, by adding some log in that process. If process terminates as soon as the startup, then TaskManager cant show it.
Please check the values of returned PROCESS_INFORMATION structure. Process ID is avaialable in pi.dwProcessId.
return_code = CreateProcess((LPCSTR) &herc_command[0], // command
(LPCSTR) &herc_parm[0], // paramter
(LPCSTR) &sa,
NULL,
TRUE,
(DWORD) NULL,
NULL,
NULL,
&si,
&pi);
Is third parameter is correct? Conversion to a string is not correct.
|
|
|
|
|
I run the code under the debugger in VS
2010
In the child process
I have a __debugbreak at the beginning of the code
Ill move it up to CWinApp::InitInstance as that would seem close to the first piece of code being executed
Thanks
|
|
|
|
|
Since CreateProcess() returns before the process has been fully initialized (e.g., waiting on some other DLL to load), it would have no way of knowing that. It goes ahead and returns a non-zero value because it did start the process.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|