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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
V

vipin_nvk

@vipin_nvk
About
Posts
63
Topics
41
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Issues with modeless dialogs
    V vipin_nvk

    Painting issues where the frame of the window is not getting painted properly

    C / C++ / MFC help question

  • Issues with modeless dialogs
    V vipin_nvk

    Hi I have two modeless dialogs. One dialog is a member variable of a CWnd class and the Create function is called on this dialog member variable. This dialog displays correctly. There is another dialog which is created as a pointer using new operator and Create is called on this dialog. There are issues with the second dialog on Windows 2003 with one of our clients. Wanted to know if there is a difference when a modeless dialog is created as a member variable of a Wnd and using new operator. Secondly, in both the cases the *pParent passed is NULL. Is there any known issue passing the parent window pointer as NULL, or it should be the applications main frame window or the Desktop window? Thanks

    C / C++ / MFC help question

  • Encryption and Decryption between C++ and C#
    V vipin_nvk

    Thanx Orjan I will try that out

    C / C++ / MFC csharp c++ sysadmin security help

  • Encryption and Decryption between C++ and C#
    V vipin_nvk

    Thanx Orjan Cant we use Microsoft Cryptographic API's on the C++ win32 application for the same? Like the one here http://msdn.microsoft.com/en-us/library/aa380255(v=VS.85).aspx[^]

    C / C++ / MFC csharp c++ sysadmin security help

  • Encryption and Decryption between C++ and C#
    V vipin_nvk

    Hi We need to encrypt a string and send across to a web service in C# over the internet. The webservice would decrpt the string and process it. How can I ensure that I use common encryption/decryption algorithms on both the client (C++, win32) and server side (C#) I have tried to build a C++ dll with the enc/dec interfaces and give it to the C# service to call them using marshaling, but I am failing to get the desired result. Please help Thanks in advance

    C / C++ / MFC csharp c++ sysadmin security help

  • Accessing web service in native C++ application
    V vipin_nvk

    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

    C / C++ / MFC help c++ wcf csharp com

  • Accessing web service in native C++ application
    V vipin_nvk

    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

    ATL / WTL / STL help c++ wcf csharp com

  • Process exit memory released?
    V vipin_nvk

    Thanx Rajesh

    C / C++ / MFC c++ performance question

  • Process exit memory released?
    V vipin_nvk

    Yes, so to my understanding, all the memory allocated using new when a process is running is allocated from the process memory heap and it will be eventually reclaimed by the OS once the process terminates.. right?

    C / C++ / MFC c++ performance question

  • Process exit memory released?
    V vipin_nvk

    If your process runs for some time and doesn't care to release unwanted memory then it won't be reclaimed by the OS and the memory "leaks". This part of your reply is confusing, does it mean that if I allocate memory in my program but fail to release it properly during application exit / if the application has crashed / terminated from the task manager, will this allocated memory (allocated during program execution) will not be returned to the OS and result in memory leak? Thanx in advance

    C / C++ / MFC c++ performance question

  • Process exit memory released?
    V vipin_nvk

    When process exit, will the memory that's left undeleted be returned to OS? My application is a C++ application.

    C / C++ / MFC c++ performance question

  • Change defaut exe name for project
    V vipin_nvk

    Hello Guys Is there a way to change the name of the exe that gets built during compilation. I want to define flags based on which the exe name should be generated (I donno where to define the flags as well), for example if i define a flag #define MY_EXE "myexe.exe" then the exe name generated should be myexe.exe. If i define a flag #define YOU_EXE "youexe.exe" then the exe name generated should be youexe.exe Thanx in advance

    C / C++ / MFC tutorial

  • Microsoft Visual C++ Crashing
    V vipin_nvk

    hello Ratheesh This may sound strange, but even I had a similar issue with VC6 after installing Project / Visio 2003 / 2007. Have you installed any of these softwares recently, or you have this problem since the beginning? Thanx

    C / C++ / MFC c++ csharp sharepoint visual-studio performance

  • Memory mapped file I/O Vs Disk I/O
    V vipin_nvk

    Hello Does memory mapped file I/O has a real advantage over disk I/O. Because I am trying to read a file using ::ReadFile API (block by block) and compare it with memory mapped file I/O mechanism from http://www.codeproject.com/KB/files/mmfio.aspx I then tried to compare the time taken to read a file of 700MB using both the techniques. I found that the memory mapped file I/O took almost the same time as disk I/O or sometimes more time. So, would like to know whether memory mapped file I/O does really provide an advantage over disk I/O and how do I achieve it. Thanks

    C / C++ / MFC visual-studio com json performance question

  • Consuming C# webservice in a C++ app
    V vipin_nvk

    Hello I need to build a C++ MFC application which would consume a C# webservice, could anybody provide some references for the same. I have found an article in CP which says we need SOAP toolkit for the same, is that the only option or do we have any other alternative. Thanx

    C / C++ / MFC c++ csharp wcf xml

  • CreateDirectory() fails in vista os.
    V vipin_nvk

    Where are you trying to create the directory, if UAC is enabled and if you try to create in C: or on locations on the flash drive CreateDirectory could fail, in such a case your application has to run with admin rights

    C / C++ / MFC help

  • String Parsing in C++ (Simple Question)
    V vipin_nvk

    Try out splitpath API, it will meet your requirement, check out MSDN for the syntax Thanx

    C / C++ / MFC c++ json tutorial question

  • How to Set the environment using CreateProcess
    V vipin_nvk

    Hi My application (say App.exe) is supposed to be launched by another process called Laucher.exe since some environment variables are needed to be set for App.exe to run. I am using CreateProcess API in Launcher.exe to set the necessary environment variables. I had written a sample earlier where in both by Launcher.exe and App.exe were non-unicode (built in VC 6.0). But, currently I have moved to VS 2008 which where in the application comes with unicode settings by default. I have converted both Launcher.exe and App.exe to Unicode, but I am having a problem to use CreateProcess in Launcher.exe to launch App.exe Since my App.exe is in unicode I think we have to set the lpEnvironment (in CreateProcess to CREATE_UNICODE_ENVIRONMENT flag) But just setting this and using the API the same way fails to launch my App.exe. I could not find sufficient links on the internet which explain how to use this flag and launch the application in a unicode environment Can somebody help me out if you have used this in advance? Thanx Vipin

    C / C++ / MFC help visual-studio json tutorial question

  • Call a function on C++ object attribute change
    V vipin_nvk

    Thanx Sandeep Simple and effective solution :) Regards, Vipin.

    C / C++ / MFC question c++

  • Call a function on C++ object attribute change
    V vipin_nvk

    Hello I have a C++ class with few attributes and functions. Whenever a new value is assigned to a particular attribute (say the attribute is an integer variable in the class) a function should get called (triggered) and the piece of code inside the function should get executed. Is it possible? If yes, what is the mechanism. Please let me know. Thanx

    C / C++ / MFC question c++
  • Login

  • Don't have an account? Register

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