Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Member 534357

@Member 534357
About
Posts
15
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Web Service Proxy class
    M Member 534357

    Yes, it does effect me the check for NULL, because it returns if the array is NULL & does not continue processing the data.

    C# question c++ data-structures

  • Web Service Proxy class
    M Member 534357

    Yes, it does effect me the check for NULL because it returns if the array is NULL & does not continue processing the data.

    C# question c++ data-structures

  • Web Service Proxy class
    M Member 534357

    I 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

    C# question c++ data-structures

  • Interfacing with a Web Service
    M Member 534357

    I 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

    C# csharp c++ question

  • Accessing a web Service from VC++ application
    M Member 534357

    The 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?

    C / C++ / MFC c++ question

  • Accessing a web Service from VC++ application
    M Member 534357

    I 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

    C / C++ / MFC c++ question

  • It is illegal to call out while inside message filter
    M Member 534357

    Thanks alot for your response, I will try your idea, for now I put some workaround in my code. Thanks again for the info.

    C / C++ / MFC csharp visual-studio help question

  • It is illegal to call out while inside message filter
    M Member 534357

    I 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

    C / C++ / MFC csharp visual-studio help question

  • Application freezes while loading DLLs
    M Member 534357

    It'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.

    C / C++ / MFC csharp c++ visual-studio question

  • Application freezes while loading DLLs
    M Member 534357

    just this one specific app

    C / C++ / MFC csharp c++ visual-studio question

  • Application freezes while loading DLLs
    M Member 534357

    it happens when I run it from the Visual Studio. NET in debug mode.

    C / C++ / MFC csharp c++ visual-studio question

  • Application freezes while loading DLLs
    M Member 534357

    Thanks but that's not the case here, could it be some static initialization that's a bit corrupted? just a guess

    C / C++ / MFC csharp c++ visual-studio question

  • Application freezes while loading DLLs
    M Member 534357

    I 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?

    C / C++ / MFC csharp c++ visual-studio question

  • Accessing all child windows from the main window
    M Member 534357

    I 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

    C / C++ / MFC question debugging learning

  • Scrollbars in a dynamically changing dialog
    M Member 534357

    I 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

    C / C++ / MFC help learning
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups