|
What is the proper declaration for a function to be exported from a c-style dll? Is there a way of doing it without using a .def file?
|
|
|
|
|
The func prototype should be:
extern "C" __declspec(dllexport) int YourFunction(void);
Then the actual declaration is:
int YourFunction(void)<br />
{<br />
<br />
}
--Mike--
http://home.inreach.com/mdunn/
|
|
|
|
|
How can I make a program that inserts some data into another executable that extracts the data? I am writing a encrypting/decrypting program, and I want it to be able to create self-decrypting Win32 executables.
Is the last section in a Win32 executable the data segment?
Thanks in advance for any advice!
Erik
|
|
|
|
|
I cannot find a tutor or sample code using a component like MSFlexGrid in an SDI/MDI View. And printing it!
Can somebody show me the way?
|
|
|
|
|
Use a form view, which means your view is laid out like a dialog on a property sheet. Then put the grid on the sheet. From memory you then override OnMove in your view to size the grid according to the view size.
LMK if you need more info and I'lldig up the project where I did it.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I got the point, thanks a lot
Can you give one more spark to print it?
Suha
|
|
|
|
|
Found a spark here:
http://codeguru.earthweb.com/printing/formview_print.shtml
However it is limited to print only viewable portion of the CFromView!
|
|
|
|
|
I have to admit I did not get to the point of printing one. Given issues of colour and so on ( i.e. what looks good on the screen can be costly to print in colour and ugly in B&W ), maybe you want to allow the user to set what cells to print, and then do it yourself by drawing lines and text in the chosen font ?
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Use a form view, which means your view is laid out like a dialog on a property sheet. Then put the grid on the sheet. From memory you then override OnSize in your view to size the grid according to the view size.
LMK if you need more info and I'lldig up the project where I did it.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hi,
I want to get the list of domains in network. For example, on my network there are 25 computers and three domains ( Development, Customer and Save ).
How programatically can i list in a listbox or example ( or in array) theses domains names?
Thank in advance
|
|
|
|
|
What is HRESULT and HIWORD and LOWORD
please write example ...
|
|
|
|
|
|
Do the struct type accept data member of kind CArray?
Thank in advance, Leudis
|
|
|
|
|
Why not? Just try out.
Uwe Keim
http://www.zeta-software.de
|
|
|
|
|
My document has an unknown size (is listCtrl), I don't know how can I indicate to print loop that my document is multipage.
Thank in advance, Leudis.
I sorry but my English is very poor.
|
|
|
|
|
hi,
I'm looking for a way to add items to the popup menu that appears when you right click on a file in Windows. It would be nice if I could add an extra option too the "send to" part of the popup menu from a Visual C++ program ... Can anyone help???
Regards,
FlashP
|
|
|
|
|
|
I dunno about code.. but to do it manually just create a shortcut to your program in C:\windows\SendTo
|
|
|
|
|
I have a Date and time picker control on a property page with the DTS_SHOWNONE style.
Each time I swith back to the page that has the date and time control the check box is always checked whereas it was unchecked before switching to another page.
After stepping into the code I found that each time the page gains the focus, the DDX_DateTimeCtrl is called.
The DDX_DateTimeCtrl doesn't take into account the previous state of the check box.
I checked twice and I have the latest SP for VC++ 6.0.
Does someone know if that bug have been reported ?
P.S.: In case I am the only having this problem, please let me know
Regards,
Daniel BERMAN
|
|
|
|
|
It's hard to say w/o seeing your code. The first thing I'd check is, is does your page have the disabled style in the resource file? Not making the page disabled can lead to strange behavior.
--Mike--
http://home.inreach.com/mdunn/
|
|
|
|
|
Well the pages are disabled.
The problem seems to be in the way the DDX_DateTimeCtrl(CDataExchange* pDX, int nIDC, CTime& value) function is implemented.
When the function is called to save the data it calls CDateTimeCtrl::SetTime(&value) with a valid pointer that causes the SetTime function to set the flags to GDT_VALID with no regards to the previous state !
Daniel
|
|
|
|
|
Ah, ok. In that case, you can write your own DDX routine - just copy the code from MFC's routine and fix the problem.
--Mike--
http://home.inreach.com/mdunn/
|
|
|
|
|
Is there API that I can export the registry settings programmatically?
There is a similar function in regedit, i believe that there is one similar in API.
Thanks all!
|
|
|
|
|
Hello, can anyone help me?
I have a ListControl (it has the Member-Variable m_ctlList).
I want to read the data from the list-control and write it
into an INI-File.
That's a part the code (it is obviously written with MFC):
char *keys[4] = {"1","2","3","4"};
int num_items = m_ctlList.GetItemCount();
for(int i=0; i
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hello, the codegurus around the world.
WritePrivateProfileString should be assigned the absolute path showing ini files for four parameter.
Otherwise, it created Statistics.ini at Windows direcory.
If there is no the same ini file at Windows directory,
there is something wrong?
HTH.
-Masaaki Onishi-
|
|
|
|