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
K

Katamneni

@Katamneni
About
Posts
16
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Opening other application from our own application
    K Katamneni

    Dear All I want to write a dialog based application where user is prompted to choose some file using CFileDialog. I have to open the file selected by the user with default Shell editor associated with that file from my application ( For e.g, if user selecets "Sample.bmp", i must be able to run "mspaint.exe" application with "sample.bmp" opened for editing from my application ) and i must not allow user not to do any operation with my application till he closes the opened application. Can somebody help me in implementing this functionality. Thanks in advance Regards Krishna

    C / C++ / MFC linux help

  • Executing Batch file
    K Katamneni

    Hi All I want to execute a batch file from my MFC application. I'm using ShellExecute for this purpose,but some times my batch file returns error codes based on certain criteria.How do i get these error codes in my MFC application and react to them ? Thanks & Regards krishna

    C / C++ / MFC question c++ javascript help

  • Executing Batch file
    K Katamneni

    Hi All

    C / C++ / MFC

  • __value classes in Unmanaged C++
    K Katamneni

    Hi All i have defined a __value type class.How can i declare and create it in UnmanagedC++ class using new operator on the C runtime heap? For example public __value MyClasss { public: int a; } //my unmanaged classs class MyUnmanagedCPP { void SomeMethod() { MyClasss *pMyClass = new MyClasss();// here i'm getting error C3828 } }

    Managed C++/CLI question c++ help tutorial

  • Network programming
    K Katamneni

    Hi All I have a doubt with TCP/IP programming.In windows 2000,if user Disables the NetWork connection,how the applications know about that disconnecion?Is there any message that windows broadcast to all the applications about this?How to handle this situation using CSocket? Thanks and Regards Krishna

    C / C++ / MFC sysadmin tutorial question

  • Failed to open project
    K Katamneni

    Hi All, I'm facing a problem in opening a ManagedC++ project in VS.net 2003 IDE.I'm able to open the project from the folder where it was created initially.Later i have added that project and sub folders in the project to version control system.When i'm trying to open the project from that folder,IDE is showing,"Failed to open the project".I copied the entire source folder from it's original location to a different folder'but still failing to open the copy of the project except the original project.Can anybody help me what's causing the failure of loading a project in IDE.Our team members are unable to open the project except it's creator. Thanks and Regards Krishna

    Visual Studio visual-studio collaboration help csharp c++

  • Sending Large binary data using CSocket
    K Katamneni

    Dear MFC guru's I'm using MFC CSocket and CSocketFile and serialization to transfer data over the network.My data size is very large(some times upto 100KB).But my application is getting hanged after some time.When i monitor my data transfer using TDImon tool(from www.sysunternals.com) the result column is displaying PENDING when it's running and DATA_NOT_ACCEPTED before going to inactive state.My server application is not responding untill i kill my client application running on different machine.Can anyone help me how to transfer large amount of data using serialization and CSocket and why DATA_NOT_ACCEPTED error is coming.Any code examples would be great help. Thanks and Regards Krishna

    C / C++ / MFC sysadmin help c++ com json

  • Porting CWnd MFC class to ManagedC++
    K Katamneni

    Hi all I have an MFC class named CCoordWnd derived from CWnd. Now I'm porting this class to .Net.So,I started with deriving from class System::Windows::Forms::UserControl. My MFC class CCoordWnd have overloaded constructors like these. CCoordWnd(unsigned int cnum,CCoordWnd **myptr); CCoordWnd(CCoordInterface *cip,CCoordWnd **myptr); CCoordWnd(CCoordInterface *cip,unsigned int cnum,CCoordWnd **myptr); and a member variable like this. CCoordWnd ** m_myptr Can anybody help me how can I implement these functionality in ManagedC++ environment.This is very urgent work for me.Please help me. Thanks in Advance Regards Krishna

    Managed C++/CLI c++ csharp help question workspace

  • Using CString in MC++ project
    K Katamneni

    I'm not using that method for conversion.My code looks like this LPCTSTR _pszFileName = 0; _pszFileName = static_cast(const_cast(static_cast(Marshal::StringToHGlobalAnsi(m_FileName)))); this->m_pUnManageClass->SetFilePath(_pszFileName); //inside the unmanaged class i have a member variable of type CString // m_strFilePath = _pszFileName. Marshal::FreeHGlobal(static_cast(const_cast(static_cast(_pszFileName)))); after this,any operation on the CString variable causing access voilation at GetData() member of the CString template class. Thank You verymuch Rgds Krishna

    Managed C++/CLI c++ help tutorial

  • Using CString in MC++ project
    K Katamneni

    Hi all I'm trying to use a UnmanagedC++ class in my MC++ application.The unmanaged class internally using CString class as member variables.I'm converting the String to LPCTSTR and passing it as a parameter to the methods of the unmanaged class.There i'm getting access voilations on CString class GetData()method(this is inside the class CString).Can anybody help me how to solve this problem and what are all the other settings needed.(in project options i have enbaled using MFC in dynamic libraries). Thanks You Rgds Krishna

    Managed C++/CLI c++ help tutorial

  • Using CString in MC++ project
    K Katamneni

    Hi all I'm trying to use a UnmanagedC++ class in my MC++ application.The unmanaged class internally using CString class as member variables.I'm converting the String to LPCTSTR and passing it as a parameter to the methods of the unmanaged class.There i'm getting access voilations on CString class GetData()method(this is inside the class CString).Can anybody help me how to solve this problem and what are all the other settings needed.(in project options i have enbaled using MFC as dynamic libraries). Thanks You Rgds Krishna

    Managed C++/CLI c++ help tutorial

  • typecasting void* to object
    K Katamneni

    Hi all i am writing a Managed C++ class which internally using unmanaged classes. For my class to work,i need to pass the callback function pointer to one of my unmanaged class as shown below __gc class MyClass : System::Object { UnmanagedClass* pUMClass; static MyStatic(void*,unsigned long,unsigned long); MyClass(void) { pUMClass = new UnmanagedClass(); pUMClass->SetCallback(&MyClass::MyStatic); } } is it possible pass Managed method pointer to unmanaged class? if possible how can i type cast void* parameter to my class type(which i'm setting as client data). Thanks in advance

    Managed C++/CLI question c++

  • error C2872: 'IDataObject' : ambiguous symbol
    K Katamneni

    Hi all i am writing a custom control derived from UserControl in ManagedC++.This class is using third party unmanaged C++ classes(from VTK library) internally. When i tried to build the control i got the following following error. D:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Include\ObjIdl.h(7408): error C2872: 'IDataObject' : ambiguous symbol Please somebody help me how to get rid of this error. Thanks in advance Regards Kriohna

    Managed C++/CLI csharp help c++ visual-studio tutorial

  • Typecasting Enum type
    K Katamneni

    Hi All i am wrapping up a MFC custom control in Managed C++ by subclassing it. I am having enum type in MFC which i want to expose to outside via Wrapper class.So i defined equivalent enum type in managed C++.How can i type cast from ManagedC++ to unmanaged type?Is there any otherway to avoid this redefinition? Thanks in advance Krishna

    Managed C++/CLI c++ question

  • Visual inheritance in visual C++.net 2003
    K Katamneni

    To add a Windows Form that inherits from a previously created form class In the Solution Explorer, right-click your project and choose Add, then choose Inherited Form. but i'm not getting the Inherited Form menu:(.I'm getting only Add New Item Add Existing Item Add Folder ------------------ Add Class Add Resource are there any registry settings or some other settings i should set? Thanks Krishna

    Visual Studio c++ csharp windows-admin oop question

  • ActiveX control in .Net
    K Katamneni

    Hi .net guys, i have a problem with using ActiveX control in .net. when i tried to place an active X control on the ManagedC++ form it's showing the following message. "File or assembly name AxInterop.Chartfxlib.dll or one of its dependencies was not found". Can anybody help me how to workout this? Thanks in advance Rgds krishna

    Visual Studio help csharp c++ com tutorial
  • Login

  • Don't have an account? Register

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