|
The MSDN docs says "REG_QWORD 64-bit number". Hence it's not unlimited, but limited to 8 bytes of storage. Little endian format.
--
Pictures[^] from my Japan trip.
|
|
|
|
|
For a SDI application, I can call AfxRegisterClass() in PreCreateWindow() to register class name. My question is -- how can it be done on a dialog based application since CMainFrame does not exist?
Thanks.
Vito
|
|
|
|
|
this is from the MSDN help for AfxRegisterClass:
BOOL COneT32App::InitInstance()
{
WNDCLASS wndcls;
memset(&wndcls, 0, sizeof(WNDCLASS));
wndcls.style = CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW;
wndcls.lpfnWndProc = ::DefWindowProc;
wndcls.hInstance = AfxGetInstanceHandle();
wndcls.hIcon = LoadIcon(IDR_MAINFRAME);
wndcls.hCursor = LoadCursor( IDC_ARROW );
wndcls.hbrBackground = (HBRUSH) (COLOR_WINDOW + 1);
wndcls.lpszMenuName = NULL;
wndcls.lpszClassName = _T("MyNewClass");
if(!AfxRegisterClass(&wndcls))
{
TRACE("Class Registration Failed\n");
return FALSE;
}
..
no mainframe needed
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
I tried it before but it does not work. I used SPY++ which does not show the class name I wanted.
If it's a SDI or MDI application, I can set the class name with the CREATESTRUCT structure in PreCreateWindow().
|
|
|
|
|
|
Hey,
how can I draw a edge or a rectangle with thick LINES and correct edge.
When I draw it with e.g.
CPen test(PS_SOLID,5,RGB(10,10,10))<br /> I have a edge with a fringe.
Thanx for helping me
|
|
|
|
|
I'm not exactly sure what you mean by fringe, but IF I'm right in interpreting your problem, you need:
CreatePen (PS_SOLID | PS_INSIDEFRAME, nWidth, clrBrightPinkWithGreenBits);
I hope that helped,
Iain.
|
|
|
|
|
are you talking about lines with anti-aliased edges, to eliminate the jagged stair-step edges ?
you might try using GDI+, which can draw anti-aliased lines.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
Hi
Im testing my project in different OS.
My project needs to register a COM dll.
In Windows XP, and ME works great.
But in Win2K and 2003 server I can't register the dll.
If I do:
regsvr32 library.dll
I get "LoadLibrary("library.dll") Failed - Access Denied"
I'm logged as an Administrator, and tried registering an OCX and registered ok.
Any suggestion?
Thanks
Sebastian
|
|
|
|
|
Maybe a DLL that your DLL requires to load is not available on the systems experiencing failure.
Run Depends.Exe (Dependency Walker) to see which other DLL yours requires.
No shirt, no shoes, no brains, no service.
|
|
|
|
|
I needed to install ATL71.dll, now is all working
Thanks
|
|
|
|
|
I am looking for Visual C++ compiler if anyone has that or visual studio 6 please email me at Paradox998@aol.com.
Thank you
-- modified at 10:11 Friday 9th December, 2005
Thank you for your quick responses, was looking for a free vc6 if i cant use the msdn free download to compile it is missing nmake file i need.
|
|
|
|
|
You can find it on EBay[^]. I'm pretty sure it's also included with an MSDN Pro subscription.
/ravi
My new year's resolution: 2048 x 1536
Home | Music | Articles | Freeware | Trips
ravib(at)ravib(dot)com
|
|
|
|
|
oh, seems that we are visiting the same sites
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
|
|
Hi all,
I have a crash dump which point to the following function :
string.erase()
does someone has any clue what could be the reason ?
I thought it a safe function , which is very straight forward to use
Thanks
|
|
|
|
|
hey guy, do you think you can help me if i give you such a line of code, just looking normal ?
give us the error/exception message and the context this line of code is called (provide a piece of the code around it - but not the entiere file !!!)
moreover, tell which string class you are using (CString, std::string, or any else...)
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20] | soon : [VisualCalc 3.0]
|
|
|
|
|
|
Hello Sir,
in my application i have to interact with C from my VC++ GUI,i have to set intials to variables in C from VC++, and control the C program from GUI like compiling, sending intial values, read data, and output should again send to VC++.
How can link these two.
Thanking you.
sheshidar patnam
|
|
|
|
|
I dont understand what u what to do might be ur talking somthing about
IPC (inter process communication )
But if u mean to get some data from other exe file in vc++
then u can create a file and then store the data and retrive
the data from the file
something like Dll can also help u but not sure as i could not get ur question .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
I am sorry that u couldn't understnad my question,
my question is i have some programs written C, and i have one GUI developd in VC, now i have to control C programs with GUI, like start c execution, assigning intial values to it.
|
|
|
|
|
How would you assign initial values to your C executable without the GUI. For example, does your C executable use command line parameters or an input file? Those two things would be very straight forward to do from your GUI app.
|
|
|
|
|
Normally, what you have to do is to modify the .h-files for the C-sources
Before the first function prototype add this:
<br />
#ifdef __cplusplus<br />
extern "C" {<br />
#endif<br />
After the last function prototype, add this:
<br />
#ifdef __cplusplus<br />
}<br />
#endif<br />
Now you can call the C-functions from your C++-source.
Kakan
|
|
|
|
|
Hi Kakan,
thx for ur message,
i did as you said, and now i have another question,
i want to retrieve a string from C code into editbox,
i added the code to header files as you said, now how i have to initialise string to editbox,
for instance mamber variable of edit box is m_strEdit1,
and a function in c code returns the string "Hello", so how can i bring this string into editbox in vc.
thanking you.
|
|
|
|