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
V

Varghese Paul M

@Varghese Paul M
About
Posts
55
Topics
19
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Safari Browser cache issues
    V Varghese Paul M

    Hi, I am working on a security related product in Microsoft Windows and my requirement is to programmatically delete the Apple Safari browser cache for Microsoft Windows. I can see the cache.db file in folder C:\Users\{username}\AppData\Local\Apple Computer\Safari. I can open the cache.db file from this location using SQLite and can see the entries. However, when I choose the option “Edit->Empty Cache” option from the safari's main menu, it is not deleting any of the items from the Cache.db file. What happends in Safari when I choose the Empty Cache option? Where does the cache information stored in the system? Is it possible to delete that cache programmatically? Does Safari provides any SDK to work with windows? Thanks in advance

    cheers Varghese Paul

    IT & Infrastructure database sqlite security question

  • public/private key pair and digital certificate
    V Varghese Paul M

    Hi everyone, I have CERT_CONTEXT with me. How do I get public key from a digital certificate as HCRYPTKEY to use with API like CryptEncrypt? (ie how to get HCRYPTKEY from CRYPT_BIT_BLOB) How do I do the same for my private key? (ie how to get HCRYPTKEY from my private key) Links to C++ examples / documentations are welcome Thanks in advance.

    cheers Varghese Paul

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

  • AES 128bit encryption using CryptoAPI
    V Varghese Paul M

    Hi, Is it possible to do AES-128 bit encryption/decryption in Windows XP/2003 using CryptoAPI? If yes, then how should I create the key for encryption and how do I share the key among other users to decrypt the content? Are there any digital certificates involved? I saw the CSP registry entry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Defaults\Provider\Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype). Why a suffix "(Prototype)"? What all are the possible methods to create and share the key? Links to examples and other detailed documents will be useful. Thanks in advance

    cheers Varghese Paul

    C / C++ / MFC question windows-admin security

  • Winsock problem in 64 bit windows
    V Varghese Paul M

    Hi everybody, The line of code

    SOCKET sock = socket(AF_NETBIOS, SOCK_DGRAM, 0);

    works fine in windows XP 32 bit but fails in windows server 2003 enterprise 64 Bit. The WSAGetLastError() returns error code 10047. Any idea where I am going wrong? The code is given below which prints "Success" in 32 bit OS but prints Error: 10047 in 64 bit OS

    void main()
    {
    WSADATA sockdata;
    WORD wVersionRequested = MAKEWORD(2, 2);

    int stat = WSAStartup(wVersionRequested,&sockdata);
    if(stat != 0)
    {
    	printf("Error initializing winsock\\r\\n");
    	return;
    }
    
    SOCKET sock = socket(AF\_NETBIOS, SOCK\_DGRAM, 0);
    DWORD errcode = WSAGetLastError();
    
    if(sock != INVALID\_SOCKET)
    {
    	closesocket(sock);
    	printf("Success\\r\\n");
    }
    else
    {
    	printf("\\r\\nError: %d\\r\\n",errcode);
    }
    WSACleanup();
    

    }

    cheers Varghese Paul

    C / C++ / MFC help sysadmin windows-admin question

  • [Message Deleted]
    V Varghese Paul M

    [Message Deleted]

    C / C++ / MFC

  • dwDesiredAccess in CreateFile API
    V Varghese Paul M

    Hi everybody, I don't know is this the right forum to ask this question. Guide me if I am wrong. Right now I am working on some network related file systems. My difficulty is to determine the desired access level of a file in its shared mode. For example, I have a file opened with some dwDesiredAccess level flags set using CreateFile API. Some other process is asking for the same file with a different dwDesiredAccess level flags which may or may not succeed when I call the CreateFile API. Is there a way I can determine the result of the second CreateFile API without calling it? ie, is there a way I can validate the second dwDesiredAccess by checking with the first dwDesiredAccess and return ERROR_SHARING_VIOLATION to the client without making a call to CreateFile API? Please let me know if some good articles or other useful information available anywhere. Thanks in advance

    cheers Varghese Paul

    C / C++ / MFC tutorial question sysadmin json help

  • COM vs Assembly
    V Varghese Paul M

    Hi, I have a COM component developed in VC++ which provides hundreds of interfaces. Many people use this component in their managed code using interop DLLs. 1. I just want to know if this is the right way of doing it? 2. Does it make sense providing a .NET assembly for them to do development in the .NET environment? 3. Is there any advantage if we use .NET assemblies instead of using COM via interop DLLs? 4. Is there any good article that explains how to convert unmanaged COM into managed assembly using managed C++? Thanks in advance

    cheers Varghese Paul

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

  • iostream compatibility problems
    V Varghese Paul M

    I am in the middle of porting one of my C++ project which is using old iostream (shipped with VC6.0) into new iostream implemented in stlport version 5.2 I found that some of the stream related methods are not available in the new iostream class. The compiler gives me error for the following methods streambuf::allocate() streambuf::doallocate() streambuf::blen() ostream::osfx() ostream::opfx() streambuf::base() streambuf::ebuf() streambuf::setb() Am I missing something? Are there any equivalent methods available in new iostream library? How can I substitute these functions when I port into new stlport/VS2008 iostream? Thanks in advance

    cheers Varghese Paul

    C / C++ / MFC

  • X64 compilation problems
    V Varghese Paul M

    I have some problems when porting a WIN32 project into 64-Bit using VS2008. 1. I am using many third party libraries in my WIN32 project in which one of them uses old iostream functions. It gives me linker error LNK1104: cannot open file 'LIBCIMT.LIB' when I compile in X64 mode. I have the source code of the library with me. I tried recompiling the third party library using the new iostream header files under VS2008, but it gives me compilation errors which seems to be some in-compatibility issues of new and old iostreams. 2. In my project, I use both SQL and MAPI. The project compiles and runs perfectly in WIN32 mode. But the same gives me compilation error C2371: 'BOOKMARK' : redefinition; different basic types Here is a sample code to reproduce the problem.

    #include "stdafx.h" #include <comdef.h> #include <atlbase.h> #include <sqlext.h> #include <mapix.h> int _tmain(int argc, _TCHAR* argv[]) { return 0; }

    All the header files are from the VS2008 installation folder. How do I solve these problem with minimal changes in my code Thanks in advance

    cheers Varghese Paul

    C / C++ / MFC

  • using COM objects from Java that runs on SUN Java VM under MS platforms
    V Varghese Paul M

    Hi, I succeeded using COM objects from my Java program using the Java Callable Wrappers (JCW) I used Microsoft JVM and Microsoft JDK to implement JCW. Will the same run on SUN Java VM as well under Microsoft Windows Platforms? If not, then how can I use COM objects from java programs that runs on SUN Java VM under Microsoft Windows Platforms? Thanks in advance

    cheers Varghese Paul

    COM java question com

  • using COM objects from Java that runs on SUN Java VM under MS platforms
    V Varghese Paul M

    Hi, I succeeded using COM objects from my Java program using the Java Callable Wrappers (JCW) I used Microsoft JVM and Microsoft JDK to implement JCW. Will the same run on SUN Java VM as well under Microsoft Windows Platforms? If not, then how can I use COM objects from java programs that runs on SUN Java VM under Microsoft Windows Platforms? Thanks in advance

    cheers Varghese Paul

    Java java question com

  • Multi language support in MBCS application
    V Varghese Paul M

    Hi Friends, I have a dialog based MBCS application which creates the EDIT control over the dialog using CreateWindowExW API to support languages like Chinese, Japanese etc. When I paste the Chinese characters into the EDIT control, it displays it correctly. I call the GetWindowTextW to extract the content from the control into a wchar_t buffer. But the debugger is not showing the value unless I call CharToOemW. What CharToOem does on that buffer? I would like to know more details with a functional comparison of APIs, WideCharToMultiByte and CharToOem. Thank you

    cheers Varghese Paul

    C / C++ / MFC debugging json question

  • Chinese characters in SELECT query
    V Varghese Paul M

    Hi friends, I am working with SQLServer 2005 database (Collation set as Chinese) using odbc api SQLExecDirect and SQLExecute. Some of my SELECT queries containing some chinese characters works fine with SQLExecute and SQLExecDirectW but NOT with SQLExecDirect. My gut feeling is SQLExecute is converting the query into unicode before it executes. Is this assumption right ? thank you

    cheers Varghese Paul

    Database database json question

  • Unicode in SQL query
    V Varghese Paul M

    Thank you. It worked fine.

    cheers Varghese Paul

    Database database sql-server sysadmin json help

  • Unicode in SQL query
    V Varghese Paul M

    Hi friends, I am working with SQL Server 2005 database with Collation selected as Chinese_PRC_CI_AS I have a table DMASTER in the database with a field called DNAME of type VARCHAR(254) which contains some Chinese characters. When i run a query like select * from dmaster where DNAME = N'翻译文字或网页翻译文字或网页'; from the SQL Server 2005 client, it works fine. But if I try the same query programmatically using API "SQLExecDirect", it returns no records. May I know the problem and how to solve it. Thank you

    cheers Varghese Paul

    Database database sql-server sysadmin json help

  • media streaming on a network!
    V Varghese Paul M

    I think, RTP is the protocol you are looking for. You may need some codecs also to minimize the bandwidth usage. Try exploring the SIP (Session Initiation Protocol) standard which will give you an idea of calls over the network with media streaming. You can also go through codecs G.723 and G.711A-Law and G.711Mu-Law where windows have built in support and can be accessed via ACM (Audio compression manager). Good luck

    cheers Varghese Paul

    C / C++ / MFC sysadmin question lounge

  • Why COM
    V Varghese Paul M

    Hi Experts, I am new to COM programming. (Component Object Model.) After learning some theory behind COM, I am wondering Why COM when every thing is possible using DLLs which exports C++ classes. Or What is possible only in COM and not possible in C++ DLLs. Could anyone explain? Thanks in advance

    cheers Varghese Paul

    ATL / WTL / STL question c++ com learning

  • Why COM
    V Varghese Paul M

    Hi Experts, I am new to COM programming. (Component Object Model.) After learning some theory behind COM, I am wondering Why COM when every thing is possible using DLLs which exports C++ classes. Or What is possible only in COM and not possible in C++ DLLs. Could anyone explain? Thanks in advance

    cheers Varghese Paul

    COM question c++ com learning

  • Walk through html controls
    V Varghese Paul M

    I am trying something like Spy++ for html documents to identify child window controls on the html page rendered by a browser. Is there a way I can programmatically access the common controls like button, edit window etc from a html page after the page got rendered in a browser like firefox, IE, Opera etc. Thank you

    cheers Varghese Paul

    C / C++ / MFC html

  • Set Focus on Button Control.
    V Varghese Paul M

    Use GotoDlgCtrl() instead of SetFocus()

    cheers Varghese Paul

    C / C++ / MFC 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