Yes, it does effect me the check for NULL, because it returns if the array is NULL & does not continue processing the data.
Member 534357
Posts
-
Web Service Proxy class -
Web Service Proxy classYes, it does effect me the check for NULL because it returns if the array is NULL & does not continue processing the data.
-
Web Service Proxy classI created a Web Service that has a method that takes string arrays for ex: public void CalculateModel(string[] stringList1, string[] stringList2) { //code here } When I add this web service as a web reference to my C++ application it generates a proxy class, in the proxy class it displays the array parameters like this: BSTR* stringList1, int __stringList1_nSizeIs, BSTR* stringList2, int __stringList2_nSizeIs, Then it does the following: checks these pointers for NULL if ( stringList1 == NULL ) return E_POINTER; if ( stringList2 == NULL ) return E_POINTER; So my question is how do I prevent the proxy file from adding these checks for NULL? because I do allow the user to pass in an empty string array which is defaulted to NULL on the C++ side. Thanks
-
Interfacing with a Web ServiceI have a C++ application that I want to have interface with a C# Web Service application. What are the different ways that I can go about this? Thanks
-
Accessing a web Service from VC++ applicationThe code for GetWeather is as follows: public void GetWeather(string stationcode) { Weather weather = new Weather(); GetWeather getweather = new GetWeather(); weather = getweather.GetWeatherObject(stationcode); } Yes it does require a BSTR as the parameter & it does not return any value, basically all the function does is update a database with the latest weather. It seems to be failing in the atlSoap.h file in the SendRequest function when it tries to navigate to the url, it fails in sending the message to the server os the wuestion is WHY?
-
Accessing a web Service from VC++ applicationI added a web service to my VC++ application. To access it from within my project I do the following code: WeatherService::CWeatherService *ws = new WeatherService::CWeatherService(); HRESULT hr = ws->GetWeather("KNEL"); if(hr == E_FAIL) AfxMessageBox("Unable to retrieve current weather, Invalid Station Code", MB_OKCANCEL); It's returning an E_FAIL by the SendRequest function. Any ideas as to what I am doing wrong? It works fine when I call it from a managed C++ application. Thanks
-
It is illegal to call out while inside message filterThanks alot for your response, I will try your idea, for now I put some workaround in my code. Thanks again for the info.
-
It is illegal to call out while inside message filterI am running my application in Visual Studio .NET & am getting the following error "It is illegal to call out while inside message filter" What can be causing this error to occur? Thanks
-
Application freezes while loading DLLsIt's not the DLL, the DLL where it's freezing at, seems to load fine, it seems only to be happening on my machine, my co workers are able to run the same application just fine. What could have happened? I did a repair/reinstall on my VS but it didn't help.
-
Application freezes while loading DLLsjust this one specific app
-
Application freezes while loading DLLsit happens when I run it from the Visual Studio. NET in debug mode.
-
Application freezes while loading DLLsThanks but that's not the case here, could it be some static initialization that's a bit corrupted? just a guess
-
Application freezes while loading DLLsI am running a VC++ MFC based application using Visual Studio .NET, as it starts up it loads most of it's DLLs & then freezes so it never really starts the application it stays in this frozen state. The only way out of it is by killing it. I rebooted my machine, plus rebuilt my application but it didn't work. What can be causing this to happen?
-
Accessing all child windows from the main windowI have to get all the child windows from my main window. Once I have the hwnd How do I find out which window it is, I know I can call GetClassName on the hwnd but that's not good enough for me because most of my windows don't have names, I tried calling GetDlgCtrlID on the hwnd but it crashes because my hwnd is just enumerated. So what can I call to get either the resource ID of the window or some other information that will tell me which window it is. The following is the code I wrote to get the windows: if(!EnumChildWindows ( AfxGetMainWnd()->m_hWnd, EnumChildProc, NULL)) { TRACE("Unable to get child windows???\n"); return; } BOOL CALLBACK CMyDlg::EnumChildProc(HWND hwnd,LPARAM lParam) { TRACE ("Enumerated Child Window : %x\n", hwnd); } Is there some other function besides EnumChildWindows that can be used & will give me more useful data? Thanks in advance
-
Scrollbars in a dynamically changing dialogI have a dialog as a child window to a CSizingControlBar. The dialog was created using the resource editor with 5 button controls at the top of it. At run time I dynamically add CListCtrls to it (the number of list controls will vary - depends on how many the user wants). The issue I am having is with the scroll bars when a new control is added while the scroll bar is scrolled down (not at the top position) the list controls get properly added in the right position but when I scroll back to the top of the dialog because I reset my scroll position to 0 before I add the new controls my original static controls are no longer there - They seem to disappear If anyone can tell me what I am doing wrong I would greatly appreciate it Thank you