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
C

Cpp_Com

@Cpp_Com
About
Posts
14
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Write REG_MULTI_SZ value in registry
    C Cpp_Com

    I want to write a REG_MULTI_SZ value (e.g 100-104) in registry. My code is like

    HKEY objHKey;
    CString strReturn;
    CString subkey("SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters");

    // Open Registry key for Vlc Path
    if( RegOpenKey( HKEY\_LOCAL\_MACHINE,
    				(LPCTSTR)subkey,	// what to open
    				&objHKey				// on success, handle goes here
    				) == ERROR\_SUCCESS )
    {
    	unsigned char \* format =  new unsigned char \[100\];
    	unsigned char p1\[5\] = "998";
    	unsigned char p2\[5\] = "999";
    	sprintf((char\*)format, "%s\\\\0%s\\\\0\\\\0", p1, p2);
    	int ILenght = 20;//strlen(format);
    
    	unsigned char \*ptr=  (unsigned char \*) strTemp.GetBuffer(0);
    	
    	if(ERROR\_SUCCESS != RegSetValueEx(objHKey,
    					\_T("ReservedPorts"),
    					NULL,
    					REG\_MULTI\_SZ,
    					//(BYTE\*)\_T("1000-1004"),
    					ptr,
    					strTemp.GetLength()))
    					
    	{
    		AfxMessageBox(\_T("Failed to update in registry."));
    	}
    	
    	// Close the registry
    	RegCloseKey( objHKey );
    }
    

    But this is not updating in registry.

    ATL / WTL / STL windows-admin help announcement

  • How to disable warning popup in ActiveX
    C Cpp_Com

    You are right, register the ActiveX has anything to do with the 'No Safe' message displayed. but if we want to use the Activex we have to register it. Now I'm doing same manually by using Regsvr32 /u D:\MyActivexCtrl.ocx. How can i do so programeticall? And also If I'm trying to register in some system it is giving error LoadLibrary(".ocx") failed - This application has failed to start because the application configuration is incorrect. How to fix this?

    ATL / WTL / STL com tutorial question

  • How to disable warning popup in ActiveX
    C Cpp_Com

    Thank You. I've fixed this issue. But If i register my Activex using command "Regsvr32 /s MyActiveXCtrl.ocx", then its working. Is there any other way to register this ActiveX? Currently I'm calling this ActiveX methode in java scrpit.

    ATL / WTL / STL com tutorial question

  • How to disable warning popup in ActiveX
    C Cpp_Com

    Hi All, While running my Activex in IE i'm getting a warning popup, saying that this Activex Is not safe. Can any body tell me how to disable this warning? Thank You All.

    ATL / WTL / STL com tutorial question

  • Convert string to alpha numeric value
    C Cpp_Com

    Dear All, I've a String. Now i've converted to MD5 hash checksum value. Now i want to decode the same string from the hash value. Please tell me how to do thi. Note : I'm using Crypto++ library. Thank you all.

    C / C++ / MFC cryptography tutorial

  • Copy Constructor in Singletonclass.
    C Cpp_Com

    Thank u superman for the reply. But my doubt is if i have a singletonclass, assume CMySingleTon, and inside the class i've static CMySingleton& GetInstance() methode whice is returning the static CMySingleTon obj. If i need the object, I've to call like CMySingleton::GetInstance();, and i cannt create an object outside class. My doubt is that when CMySingletonClass AnotherObj(Obj); // Error since copy constructor is private. will be called. And is it possible. Thank u all.

    C / C++ / MFC question

  • Copy Constructor in Singletonclass.
    C Cpp_Com

    Hi All, I ve a doubt. Is it necessary to override copy constructor inside a sigleton class? if Yes, why so? I c'd nt find a satisfactory answer in net, so thought to put it here. Thank u all.

    C / C++ / MFC question

  • Disable keyboard & mouse input
    C Cpp_Com

    i wrote like this #include <iostream> #include <windows.h> #include <winable.h> using namespace std; int main() { BlockInput(true); Sleep(5000); return 0; } its working fine for 5000ms only. but my motto is to unlock the system while i press esc key. how to do this? plz help.

    C / C++ / MFC c++ help

  • Disable keyboard & mouse input
    C Cpp_Com

    yes. Is it possible? or i shd go 4 dialogue based application.?

    C / C++ / MFC c++ help

  • Disable keyboard & mouse input
    C Cpp_Com

    Thank u very much for the reply. can i use this methode it in consol based c++ application?

    C / C++ / MFC c++ help

  • Disable keyboard & mouse input
    C Cpp_Com

    Hi All i need a c++ code to disable keyboard and mouse input. can any body help me. I didn't find much help on net. Thank u all in advance. Cheers, Sus.

    C / C++ / MFC c++ help

  • Vtable for derived calss
    C Cpp_Com

    Hi All suppose i ve a class class BAse {public: virtual void f(); }; class derive: public Base { public: void myFunc(); }; in this case vtable ll be created for derive class or not? Thank you all in advance.

    C / C++ / MFC question

  • when should i use a list and when to use vector?
    C Cpp_Com

    I tried searching on google, but could not find a satisfactory answer. :)

    C / C++ / MFC graphics docker question

  • when should i use a list and when to use vector?
    C Cpp_Com

    Hi All I've a doubt. when should we use a vector, when to use list and when we should go for map container in our programming? Thank you all.

    C / C++ / MFC graphics docker question
  • Login

  • Don't have an account? Register

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