|
how to create a translucent rectangle?
thanks.
regards,
tctan
|
|
|
|
|
|
You could use GDI+ and draw using an ARGB color. Adjust
the alpha value to the amount of "translucency" you want.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I need help on Rich edit control. I have placed it in the dialog box and I called the function AfxInitRichEdit() in InitInstance.
I have opened the properties of RichEdit and Checked the Button “Numbers” so that it can accept numbers only. But still it accepts characters ? Why ?
Can anyone help me on this ?
Thanks in advance!!!!
Thanks a lot
|
|
|
|
|
Hello friends,
I've an application that calls the webservice to upload file on server.
I've used MSSOAP toolkit 3.0, everything works fine for Windows XP.
The same code fails under Vista the code is as below.
ISoapConnectorPtr Connector;
hr = Connector.CreateInstance(__uuidof(HttpConnector));
if(hr != S_OK)
{
strErrMessage="Can't create Http Connector.
}
Connector->Property["EndPointURL"] = QPTLOGIN_URL;
hr = Connector->Connect();
In the code above hr = Connector.CreateInstance(__uuidof(HttpConnector)); fails on Vista and working fine in XP.
Can anybody please help me to solve this problem for Vista or any suggestions for calling webwservice in Vista OS.
Thanx in Advance.
ritz1234
|
|
|
|
|
How to work this out?
#ifdef SOME_DEF
#include "stdafx.h"
#endif <------------------------unexpected endif??
chesnokov
|
|
|
|
|
you're not supposed to include stdafx.h conditionnally...
this header which you'll find in any MFC program must be included before any other includes in every compilation unit.
I believe you'll have to disable precompiled headers to have a better try, but even that, I'm not sure it will work.
why are you trying to do that ?
|
|
|
|
|
I want the cpp file to be VS independent. There are no stdafx.h in Builder C++, and the rest. Only in VS. So you need to either use stdafx.h in every cpp or not to use it
chesnokov
|
|
|
|
|
actually, stdafx.h is not mandatory if your application is not linked to MFC.
also, as I already stated, try to disable Precompiled Header.
|
|
|
|
|
it is linked to MFC, the GUI, but the pure C++ lib is not, so you have to put to OS independent lib cpps that stdafx.h
chesnokov
|
|
|
|
|
then, why don't you just gneerate your lib in a non MFC linked DLL ?
that way, your GUI (which is using MFC) will still use stdafx.h like it was, and in your lib sources, you can remove every reference to that file...
|
|
|
|
|
Actually, stdafx.h is not required anywhere, even in MFC apps.
The only required header files are the ones your code may need
to compile.
You are free to use or not use pre-compiled headers, and you can
name the associated pre-compiled header file anything you want to.
As mentioned, you need to turn off the use of precompiled headers
or you can change the name in the settings or the name of the file.
stdafx.h has been the default precompiled header file for so long
that many think it's required
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
HI all,
I have assembly generated code of an simple program
C++ code:
int main(int argc, char* argv[])
{
int i =10;
int j =20;
int k = i+j;
return 0;
}
some assembly code generated of out it is:
PUBLIC _main
; COMDAT _main
_TEXT SEGMENT
_i$ = -4
_j$ = -8
_k$ = -12
_main PROC NEAR ; COMDAT
; 8 : {
push ebp
mov ebp, esp
sub esp, 76 ; 0000004cH
push ebx
push esi
push edi
lea edi, DWORD PTR [ebp-76]
mov ecx, 19 ; 00000013H
mov eax, -858993460 ; ccccccccH
rep stosd
; 9 : int i =10;
mov DWORD PTR _i$[ebp], 10 ; 0000000aH
; 10 : int j =20;
mov DWORD PTR _j$[ebp], 20 ; 00000014H
; 11 : int k = i+j;
mov eax, DWORD PTR _i$[ebp]
add eax, DWORD PTR _j$[ebp]
mov DWORD PTR _k$[ebp], eax
; 12 :
; 13 : return 0;
xor eax, eax
; 14 : }
My question is:
What is DWORD PTR syntax is
in following line
lea edi, DWORD PTR [ebp-76]
modified on Friday, August 8, 2008 5:46 AM
|
|
|
|
|
Does this link[^]
Help??
Regards,
Sandip.
|
|
|
|
|
Vikrams,
you've been asking here for long now.
when will you format your questions and make use of the <pre></pre> tags correctly ?
|
|
|
|
|
Thanks for the guideline.
|
|
|
|
|
dude, didn't I mention the <pre></pre> tags, and not the <code></code> one ?
BTW, thanks for the effort, but please edit once again...
thanks. it looks better now...
modified on Friday, August 8, 2008 5:54 AM
|
|
|
|
|
There are different machine code instructions for accessing memory
depending on what size the data pointed to is. DWORD means a double-word
(4 bytes), and a DWORD PTR indicates a pointer to a double word.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
DWOD defines the bit size of the memory being used, PTR is a modifier indicating that we are pointing to a memory location.
The following are defined in x86
BYTE - 8 bits
WORD - 16 bits
DWORD - 32 bits ( double word )
QWORD - 64 bits ( quadruple word )
DQWORD - 128 bits ( double quadruple word )
|
|
|
|
|
Thank a lot all, for your valuable postings.
|
|
|
|
|
//m_wb is WebBorswer AxtiveX
oldproc=(WNDPROC)GetWindowLong(m_wb.m_hWnd,GWL_WNDPROC);
SetWindowLong(m_wb.m_hWnd,GWL_WNDPROC,(LONG)MyProc);
m_wb.Navigate("http://bbs.carsc2c.com",NULL,NULL,NULL,NULL);
LRESULT CALLBACK MyProc(HWND hWnd,UINT uMsg,WPARAM wParam,LPARAM lParam)
{
if(uMsg==WM_RBUTTONDOWN)
return 0;
return CallWindowProc(oldproc,hWnd,uMsg,wParam,lParam);
}
I dont speak eng,Sorry,
No Write!
|
|
|
|
|
Well I can see a code of you but whats problem? can you more explain,please?
|
|
|
|
|
Hi
I have spend 2hr. for serach the USB information artical.But i got only one artical which is showing only USB Device name.Artical is [code]http://www.codeproject.com/KB/system/HwDetect.aspx[^][/code]
But i need more information about USB like how may file is there and it's name also.Can any help me..Becouse i havn't found any artical from net.Plz help me
|
|
|
|
|
If you already know the drive you can just access it as normal drive and search files using
1. FindFirstFile/FindNextFile
2. CFileFind
Can you explain more??
Regards,
Sandip.
|
|
|
|
|
Thx's
may i know which type of explain you want to know from me..
|
|
|
|