|
First, I know this question isn't exactly ATL/WTL/STL. I see no category at all in CodeProject.com that really fits this question, so this is as close as I could get.
I'm trying to configure a project to accept only ANSI-C syntax. I have read articles that say this can be accomplished by using the /TC and /Za switches. However, I don't see where in the project properties to set them. From MSDN:
1. Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
2. Click the C/C++ folder.
3. Click the Advanced property page.
4. Modify the Compile As property.
PROBLEM: When I open the Project Property pages, there is *NO* "C/C++ folder". Can anyone on this forum be more helpful than MS's own documentation? Thank you.
|
|
|
|
|
Never mind. I found the issue. Apparently the C/C++ property page doesn't show up until you have added at least one source code file. I was trying to configure it before adding any source code files. Seems kind of lame, but there we have it.
I am leaving this post up to hopefully help someone else who might run into the same problem.
|
|
|
|
|
This is probably by design. If you have an empty project then there are no C/C++ properties to show. After all, you may be intending to create the project with a different language, or even no language; Visual Studio cannot second guess your intentions.
I must get a clever new signature for 2011.
|
|
|
|
|
Well this is a tangent, but I totally disagree. The project was created by using the "Empty Project" template under the C++ templates list in the new project dialog... That implies the user intends to make a C++ project, and so at least those settings could be applied as a starting point. I mean, if I am browsing the C++ templates it's not because I intend to create a VB project or something. At least give me the minimum C++ settings as a starting point.
|
|
|
|
|
OK, maybe you should complain to Microsoft.
I must get a clever new signature for 2011.
|
|
|
|
|
I actually agree with you here... it is normally considered bad practice in GUI design to disable options by making them not visible. It creates confusion such as this, it is better to make to make the option inaccessible but still visible.
|
|
|
|
|
Xpnctoc wrote: I see no category at all in CodeProject.com that really fits this question
Here is the link to the forum for Visual Studio[^] questions.
I must get a clever new signature for 2011.
|
|
|
|
|
|
I need to access a .NET web service in a native C++ application. People have suggested to use gSOAP (which is costly for a commercial license) and I have found articles where the same can be done using SOAP tool kit (which is no longer supported by microsoft)
To use SOAP toolkit method MSXML should be installed on the PC, and ours is a portable application we cannot afford it. I looked at other alternatives and found the following article - http://support.microsoft.com/kb/908574[^] But I am getting the following errors:
error C2065: 'IHelloWorldPtr' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'ptrHW'
error C3861: 'ptrHW': identifier not found
error C2065: 'ptrHW' : undeclared identifier
error C2227: left of '->SayHelloWorld' must point to class/struct/union/generic type
I am new to COM and .NET can somebody help to resolve the issue. And is this approach the write way to access .NET web services?
Thanx in advance
|
|
|
|
|
|
I am using Softing OPC client which connects to OPC driver but if the loading takes more than 2 mins it's automatically shutdown the driver please suggest me something.
Tested with other clients also but the same problem persist.
Thanks in advance!!!!
Truth Is The Simplest !!!!
|
|
|
|
|
Does this have something to do with ATL, WTL or STL?
I must get a clever new signature for 2011.
|
|
|
|
|
Yes ,
It's COM server and problem is with CoCreateInstance() if it takes more than 120 sec it automatically shutdown the COM based server.
Truth Is The Simplest !!!!
|
|
|
|
|
That sounds like an issue for the server. I would suggest you try the OPC website for more information, unless you have the source code and can show where the problem is.
I must get a clever new signature for 2011.
|
|
|
|
|
I have a app using ATL for both the COM and the Service pieces. I have recently had need to bring in some old code that archives itself via CArchive (MFC). I don't seem to be able to hack up the right choices/orders of headers for getting the ATL classes like CAtlServiceModuleT while still have the MFC class CArchive available.
The only docs I've found so far, deal with including the MFC bits first, then the ATL bits. But that defines _AFX, and so the ATL bits leave out items like CAtlServiceModuleT.
Is there some way to make ATL the "main" library and then pull in the MFC bits later? Short of #undef'ing too many things and/or pulling bits out of header files, etc.
Thanks,
CraigL
|
|
|
|
|
Hi,
I have downloaded OpenCV 2.2.0 distribution for visual studio 2010 and as i started programming with the opencv APIs under VS 2010 I faced a terrible problem.
cvSobel and cvLaplace functions always throw cv::Exceptions and also their exceptions could have not been handled with try ... catch blocks.
the provided error is: Unhandled exception at 0x7463b727 in App.exe: Microsoft C++ exception: cv::Exception at memory location 0x003bfb9c.
and here is my code:
IplImage* pImage = cvLoadImage("..\\Tulips.jpg");
IplImage* pImage1 = cvCreateImage(
cvSize(pImage->width, pImage->height),
pImage->depth,
pImage->nChannels
);
IplImage* pImage2 = cvCreateImage(
cvSize(pImage->width, pImage->height),
pImage->depth,
pImage->nChannels
);
cvSobel(pImage, pImage1, 0, 1, 2);
cvLaplace( pImage, pImage2);
cvNamedWindow("Image", CV_WINDOW_AUTOSIZE);
cvShowImage("Image", pImage);
cvNamedWindow("Image1", CV_WINDOW_AUTOSIZE);
cvShowImage("Image1", pImage1);
cvNamedWindow("Image2", CV_WINDOW_AUTOSIZE);
cvShowImage("Image2", pImage2);
cvWaitKey(0);
please, help me if I am forgetting sth.
|
|
|
|
|
You cannot use any type of images with a sobel operator. If you use a 8U image as the source then the destination image needs to be 16S (not even 16U) because of some overflow issue then you can transform if back to 8U at will.
|
|
|
|
|
Hi,
How can I display html text on a windows form using ATL/WTL in C++? I want to mimic Microsoft Office tooltips in my C++ windows app.
Thanks!
|
|
|
|
|
web browser activex control is the first option for html.
|
|
|
|
|
Thanks for replying, but I am working with a Windows Form using ATL/WTL.
|
|
|
|
|
it is an activex control, you can definitely use it with all micosoft programing technologies.
|
|
|
|
|
Hi I m trying to load the dll using LoadLibrary which works fine.
But for one of the method paramter is an object of class which is refered inside the dll . So in this case in my client app how do i refer the .h file which is already refered in the dll inside ?
As i m trying to link dynamically how does header file references are dealt with ?
Thanks
|
|
|
|
|
DavJes wrote: So in this case in my client app how do i refer the .h file
The same way as any header file is referenced; either add it to your project or add the location to the list of include directories.
If you are saying that you do not have access to the header file, then you have a problem.
I must get a clever new signature for 2011.
|
|
|
|
|
What would be an easy way to encrypt/decrypt userID/password data coming in from potential remote user to a secure server? Phase 2 might include encrypting the subsequent data flow as well.
Any ideas would be appreciated.
Thanks
|
|
|
|
|