|
(ATL/COM/MFC/C++)
HI, I'm beginner about Window programming
I'd like to develop a small dll that has a function.
There is one text(txt file) loaded on IE.
The txt contains just a words like "Hello!!".
I've made that the "Hello!!" has focus of cursor.
I mean If I move cursor on "Hello!!"
then arrow-shaped cursor would be changed to hand-shape on a web page.
Now, If I click the "Hello!!",
the programe opens new dialog that has a static text.
The static text shows me "Hello!!".
That's all. How can I make this?
any reply, any URL contains some reference about this, offer me please.
|
|
|
|
|
Ummmmmm it's called HTML I think no?
|
|
|
|
|
I know it's easy to develop with HTML.
But I want to make it with ATL/COM/MFC/C++.
help me~
|
|
|
|
|
Can anyone tell me what the pointery bit here means?
DSA_REQ = (M802_16eDSA_REQ*)packetMsg->packet;
|
|
|
|
|
sroberts82 wrote:
(M802_16eDSA_REQ*)packetMsg->packet;
The pointery bit here means that he is typecasting the packetMsg->packet to a pointer to a M802_16eDSA_REQ type.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Hello friends,
In vc++ it is possible to generate asm code for a particular cpp file. My question is
Since assembly language instruction is processor dependent, Can you please tell me on which mircroprocessor assembly level language does the vc++ tool can generate asm file.
Hoping for a positive reply.
|
|
|
|
|
Hi ,
It generates the listing for 386 and above. It uses the instruction set for 386 for the listing files.
thanks,
Suresh Ponnusami
|
|
|
|
|
It should do that for every processor the compiler is able to write code for.
Don't try it, just do it!
|
|
|
|
|
phijophlip wrote:
In vc++ it is possible to generate asm code for a particular cpp file.
Yes, it's possible.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Hi,
I want to extract NETBIOS name using DNS
For this I am using IADsNameTranslate object of ADSI API
This is the error message I am getting
error: 'IADsNameTranslate' undeclared identifier
It seems like that IADsNameTranslate is supported on Dot net compiler and not on Visual studio 6.0 compiler
Can someone confirm this and suggest some workaround.
Thanks and Regards
Ankur
|
|
|
|
|
|
Hi,
Thanks for your reply.
Its not possible to upgrade SDK for me.
I have to implement this functionallity without upgrading SDK / Compiler.
Please tell me if there's any other approach to this.
IADsNameTranslate is working on dotnet compiler.
Please tell me how NetBIOS name can be extracted from AD using domain name.
Thanks and Regards
Ankur
|
|
|
|
|
i have developed and application where i handle the WM_ENDSESSION
ON_MESSAGE(WM_ENDSESSION,OnMyEndSession)
LRESULT CMyDlg::OnMyEndSession(WPARAM wParam, LPARAM lParam)
{
ShellExecute ( NULL, "open", "C:\\abc.exe, NULL, NULL, SW_HIDE ) ;
}
But the executable(abc.exe) is not executed.
|
|
|
|
|
What does OnMyEndSession() return? What is the value of wParam ?
You should probably handle the WM_QUERYENDSESSION message instead. This message is sent first, and if all applications respond with TRUE , Windows is going to shut down/restart. It wouldn't make sense to start up another application at this point since it would have not had a chance to respond to the WM_QUERYENDSESSION message.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
dear All,
Just wondered if one knows how to use an array in enum.
this would be more convenient then 100 diffreent variables.
many thanks, Dominik
|
|
|
|
|
I'm not quite sure I understand your question. The enum statement takes the form:
enum Colors
{
Red,
Blue,
Green,
Yellow,
Brown
}; At this point, there are no variables, only one enumerable type.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
As unsure as DavidCrow in what you mean. Assuming you mean an array of enumerated values, then the answer is simple:
typedef enum {
Blue, Red, Yellow
} Color;
Color colors[100];
Otherwise... please clarify.
|
|
|
|
|
I think he needs a struct or class. He's thinking along these lines (I think)
typedef enum
{
Blue,
Red,
Yellow,
int nTypes[9]
};
I don't think this is possible in an enum
My articles
www.stillwaterexpress.com
BlackDice
|
|
|
|
|
Thanks a lot for your help!
Yep, i was after something along these lines:
typedef enum
{
Blue,
Red,
Yellow,
green[9]
};
ok, now i know that i need and int in front of green[9].
that helps a lot!
will try this tonight!!!
many thanks, Dominik
|
|
|
|
|
ahhh,
no, i just see that this is not possile.
however, using struct or a class will
be a bit unconvenient since it doesn't number the variables automatically.
i just like....
typedef enum
{
Blue,
Red,
Yellow,
Green[9]
};
anything else messes up the code i believe, Dominik
no one's got an idea????
thanks, Dominik
|
|
|
|
|
Hi,
I am using ADSI api and want to extract Net BIOS name from DNS using C++.
I got following sample from MSDN. But this sample is not compiling. I got following compilation error:
error C2065: 'IADsNameTranslate' : undeclared identifier
I have Included "activeds.h" and "Iads.h" in the header files but still I am not able to get the desired result.
The requirement is to extract NetBIOS name using DNS.
If someone has worked on it then please sent me the working code.
#include "activeds.h"
#include "Iads.h"
int wmain( int argc, wchar_t *argv[] )
{
IADsNameTranslate *pNto;
HRESULT hr;
hr = CoCreateInstance(CLSID_NameTranslate,
NULL,
CLSCTX_INPROC_SERVER,
IID_IADsNameTranslate,
(void**)&pNto);
if(FAILED(hr)) { exit 1;}
hr = pNto->InitEx(ADS_NAME_INITTYPE_SERVER,
CComBSTR("aDsServer"),
CComBSTR("aUser"),
CComBSTR("userDomain"),
CComBSTR("passwd"));
if (FAILED(hr)) { exit 1;}
hr =pNto->Set(ADS_NAME_TYPE_1779,
CComBSTR("cn=jeffsmith,cn=users,dc=Fabrikam,dc=com"));
if(FAILED(hr)) {exit 1;}
BSTR bstr;
hr = pNto->Get(ADS_NAME_TYPE_NT4, &bstr);
printf("Translation: %S\n", bstr);
SysFreeString(bstr);
pNto->Release();
}
Regards... Ankur
|
|
|
|
|
Check the content of Iads.h and look if IADsNameTranslate is there or not. You may need to install/upgrade the Platform SDK.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
Hi
In my VS6.0/C++ - Project, i am using CFormViews with Stingray-Grids. I have to Printout these Grids automatically each Hour (time-Triggered) on .pdf-Files (Pdf-Writer is installed) in Background. No CPrintDialog/CFileDialog should be shown on Screen.
(Because there is a Printout to a File, the CPrintDialog and CFileDialog will shown)
I created an own ::OnFilePrint (copy from VIEWPRNT.cpp) and made some changes. Especially, the FileName will created and set in the DOCINFO - Structure.
If i do that, the Files will printed (saved as .pdf-File) in Background.
The Point is now, that everytime a second file will created without an Extension and with FileSize = 0; Both Files (the correct .pdf and the incorrect File) will created in StartDoc.
If the CView::OnFilePrint will called instead of my own ::OnFilePrint, only a .pdf-File will generated, but i can't hide the CFileDialog. Where do I set the DOCINFO - Structure in this case ?
Is there a way, to use CView::OnFilePrint without show CPrintDialog/CFileDialog ?
Thanks for Help
|
|
|
|
|
In the following code the try-catch is being removed in a Release Build, which obviously is causing me some grief. I've done a quick Google but found nothing yet.
bool has_eos_terminator() const
{
try
{
return ( *(((TCHAR*)_mmaddr) + _mfsize) == 0
|| ( _mfsize > 0 && *(((TCHAR*)_mmaddr) + _mfsize - 1) == 0 )
);
}
catch( ... )
{
return false;
}
}
Any ideas?
I can re-write the code easily enough but I'd really like to know why the try-catch is gone. BTW I looked at the Assembler code in the Debugger.
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
Maybe the compiler thinks that no exeption will be thrown from your code and therefore removes the seemingly redundant code. What happens if you turn all optimizations off?
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|