|
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[^]
|
|
|
|
|
Bob Stanneveld wrote:
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?
A Debug Build works as expected so I have to assume that turning optimizations off will resolve the problem. I would have thought that the optimizer shouldn't touch try-catch code, but then if it is working at the assembler level it probably doesn't know. That said this just seems like a real trap waiting to open.
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
That is/was a known problem in VC6.
http://support.microsoft.com/default.aspx?scid=kb;en-us;247203
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|
|
Tim Smith wrote:
That is/was a known problem in VC6.
http://support.microsoft.com/default.aspx?scid=kb;en-us;247203
Thanks Tim, You've nailed it. I would like to assume this can only happen when the try block only contains fairly trivial code. My worry is testing every try-catch block in a Release build. I certainly don't want to turn off optimizations for all of these functions.
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|
|
Is there any available components like addons for Visual Studio, which facilitate interface programming tasks. As it is easy under Builder C++ just attach context menu component to form and automaticaly coding its items by a single mouse click and the other similar components. While in VC++ getting CDocument/CView interface and manualy adding context menu instance to class and boring initialization it and the like.
9ine
|
|
|
|
|
hi ,
i'm presently in a project where i want to use windows password for my users authentication. I don't know how.
Could any one please provide me the resources.
Thanx,
Seenivasan Palaniappan
Long Live
|
|
|
|
|
What do you mean by 'use windows password' ? If you want just something that let the user enter a password in an edit box (and hiding the characters), you have an option with the editbox that let you do that (check the password option).
|
|
|
|