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

Kannan Ramanathan

@Kannan Ramanathan
About
Posts
22
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Another 8001010e question!
    K Kannan Ramanathan

    Custom implementation of IConnectionPointImpl<> to make use of GIT worked like a charm! :) I'd seriously advise anyone stuck in a similar situation to try out this trick -- do let me know if you need my implementation (I think it shouldnt be a problem sharing my code, as it doesnt have any project specific details in it!) Thanks Stuart for your replies.

    ATL / WTL / STL help question com sysadmin collaboration

  • Another 8001010e question!
    K Kannan Ramanathan

    Thanks Stuart for the reply. Yes, Fire_xxx() events work correctly as long as they are called in the correct context. BTW, I am trying out my good old GIT solution -- only this time I am going to store the sink interfaces in GIT and store the cookie in my vector...I am currently putting together a custom IConnectionPointImpl<> to store/retrieve things properly with out breaking anything; Will update you how it goes...

    ATL / WTL / STL help question com sysadmin collaboration

  • Another 8001010e question!
    K Kannan Ramanathan

    I use MTA; Still the same issue. BTW, since the thread created by library function doesn't initialize COM, in my server callback I do a CoInitializeEx to COINIT_MULTITHREADED. From this callback when I try calling Fire_XXX (in the original server object, which is passed via a context param), I still get 8001010e. Will creating a CWorkerThread/IWorkerThreadClient based thread automatically assume its parent thread COM context?

    ATL / WTL / STL help question com sysadmin collaboration

  • Another 8001010e question!
    K Kannan Ramanathan

    I thought of this...but, I am not sure how to apply this on my case..lemme explain: The server implements, lets say, "IServer" with a method "Run". I use "IServerEvents" to fire events in to connected sinks. From IServer::Run(), I call one of the library functions, which does a CreateThread() and returns. So, my Run() returns a S_OK and things are all fine so far. But, when the thread started by the library function finishes its work and wants to notify the client, it calls a callback function my server had registered with it in the start. I call Fire_XXX() in this callback, which is not working as it is in the context of another thread... Since my IServer::Run() has ended long time back, which COM context do I use?

    ATL / WTL / STL help question com sysadmin collaboration

  • Another 8001010e question!
    K Kannan Ramanathan

    I am putting together a local COM server, which gets linked to a legacy static library. My server passes on notifications from this library functions to the client via connection point sinks (server has the Fire_xxx methods). My problem is, the library author has freely used CreateThread()s in his functions, from which he triggers the notifications that I need to pass on to the client. As you guessed, this throws 8001010e HR. To get around this issue I used to register the interface ptr in GIT and getting it in the context of the thread. This trick wont work here, as with just the base interface, I am not able to touch all the Fire_XXX() functions! How to get access to these? TIA.

    ATL / WTL / STL help question com sysadmin collaboration

  • 32bit client talking to a 64bit local server
    K Kannan Ramanathan

    sure will do, once I am done with my current legacy => 64bit port. Thanks.

    ATL / WTL / STL question c++ com sysadmin

  • 32bit client talking to a 64bit local server
    K Kannan Ramanathan

    I have got it working. The error was because of me registering a 32bit server stub (my bad!!)...thanks. :)

    ATL / WTL / STL question c++ com sysadmin

  • 32bit client talking to a 64bit local server
    K Kannan Ramanathan

    Pk, I am stuck with the error - "duck.exe - An application has requested the Runtime to terminate it in an unusual way". This error comes up whenever the client tries to do an Advise(). I remember seeing this issue in XP (during the VS.NET 2002 days) by installing an hotfix...but, my current testbed is Win7-64..any ideas why this error is coming? BTW, are there any samples available that do this kind of 32 => 64 => 32bit calls/event_triggers? I am not able to find any (or prob I miss the key words in my search! :( )...Thanks.

    ATL / WTL / STL question c++ com sysadmin

  • 32bit client talking to a 64bit local server
    K Kannan Ramanathan

    I did a quick check using ATLDUCK sample. Built the atlduck (local com server) in to 64bit, tried connecting to it from duck (32bit). CoCreateInstance worked perfectly, but when duck tried an Advise() to atlduck, it crashed with an error msg "runtime terminated the app" :sigh: ... trying out some more experiments, will update on the results.

    ATL / WTL / STL question c++ com sysadmin

  • 32bit client talking to a 64bit local server
    K Kannan Ramanathan

    Thanks Stuart for the pointers. Looks like all I need to do is to build/register both 32bit and 64bit proxy/stubs. Is that right? In this case, can I also make the 32bit code act as a sink? Thanks.

    ATL / WTL / STL question c++ com sysadmin

  • 32bit client talking to a 64bit local server
    K Kannan Ramanathan

    One more req I have to worry abt: The 64bit local server should be able to implement connection points (32bit client being the sink)...is this possible? Thanks.

    ATL / WTL / STL question c++ com sysadmin

  • 32bit client talking to a 64bit local server
    K Kannan Ramanathan

    Is it possible to have a 32bit client initialize/invoke methods in a 64bit local COM server? If yes, how do I set up the Proxy/stub DLLs? The target OS I have in mind is Vista64 or Win7-64 (so the 32bit client will be running from with in WOW64). Also, can I go ahead with ATL 8 for implementing the above scenario? Any examples available online? Thanks.

    ATL / WTL / STL question c++ com sysadmin

  • Introducing mouse delay (local machine)
    K Kannan Ramanathan

    I am trying to make Windows render the mouse cursor with a user-defined delay (in milliseconds). For ex., if the user-defined delay is 100ms, the mouse should be rendered 100ms after the user moved the mouse (If you are wondering what is the use-case for this, I am doing this as a part of UI/Usability study that we are doing internally). As a system sw guy, my initial inclination was "lets put something next to mouclass drv", but wanted to check out the user mode first (since the code most prob will be picked up by another app-only developer). I tried the low-level hooks from an article here in CP...it worked fine for tracking the mouse, but I didn't know how to introduce the delay... Any ideas? TIA.

    C / C++ / MFC question design tutorial

  • Messenger Addon
    K Kannan Ramanathan

    I want to develop a bot plugin to Windows Messenger (not MSN Messenger!). Where do I find more info on how to go about this? Anyone know of a open source or a free tool w/source for a Messenger plugin? TIA.

    C / C++ / MFC tutorial question

  • Protocol Checking -- Need Some Help
    K Kannan Ramanathan

    Currently I am working on a protocol analyzer project. I have traces of that protocol (say a point-2-point data/control protocol) stored in files. My protocol analyzer should check for the syntactic correctness as well as the semantic correctness (the correct flow/order as specified in the Spec). Since we decided against hardcoding all the rule-checkings in the main program, the rules are put in a separate file & the inference engine loads these rules and checks for the validity of the data (from the trace files). I thought of embedding a prolog interpreter and writing all the rules in the predicate format. But, this seems to take a pretty big performance hit. Also, another idea is, developing an interpreter for a small, powerful embedded language like Lua or SMALL -- the problem here is, these lack the flexibility of a logic programming language like Prolog. I am sort of confused as to which approach I should pursue. Or, is there a better way? I'd appreciate if any of you can share some ideas regarding this with me or any online references to projects which have the same nature. Thx a lot.

    Article Writing help hardware debugging performance question

  • Protocol Validation
    K Kannan Ramanathan

    I have traces of a protocol (say a point-2-point data/control protocol) stored in files. I am thinking of writing a protocol validator, checking for the syntactic correctness as well as the semantic correctness (the correct flow as specified in the Spec). The checking rules are put in a separate file & the inference engine loads these rules and checks for the validity of the data (from the trace files). [rules file] + [trace file] ---(Inference engine)----> result This also has to be lean & fast. I am now doing a proto based on some ideas I have on how this can be done... but, I'd appreciate any ideas from you people on how this can be efficiently done (or how this is actually done :)). Thx

    C / C++ / MFC debugging

  • Multilingual resource strings
    K Kannan Ramanathan

    Hi, I use VC6 (SP5) in Windows XP Pro (SP1). I wanted to add Greek/Chinese strings. I edited the .rc files in a Unicode editor, saved the file as UTF-8. But, now, VC6 has problems handling the file. But, if I save it as a normal file, the strings are garbled. How do I add other language strings to my resource file and what shd I use to compile it? TIA MRK

    C / C++ / MFC question learning

  • designing pci driver using C++
    K Kannan Ramanathan

    If this is not a personal project, try to acquire Compuware's DriverStudio 3.0. This provides a C++ framework for writing WDM/Legacy drivers. This along with VC++ 6 (SP5) should give you a jump start.

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

  • RasApi error
    K Kannan Ramanathan

    Thanks Mike. I am passing NULL for the first parameter. The problem is, this call succeeds to create the dialup entry randomly. And, the remaining times, it returns this 0x6f8. Here is my code segment.. RASENTRY RasEntry; memset(&RasEntry,0,sizeof(RASENTRY)); RasEntry.dwSize = sizeof(RASENTRY); DWORD dwfOptions = RASEO_RemoteDefaultGateway | RASEO_DisableLcpExtensions | RASEO_ModemLights; RasEntry.dwfNetProtocols = RASNP_Ip; RasEntry.dwFramingProtocol = RASFP_Ppp; strcpy (RasEntry.szLocalPhoneNumber,CalledParty); strcpy (RasEntry.szDeviceType,RASDT_Isdn); strcpy (RasEntry.szDeviceName,DeviceName); RasEntry.dwfOptions = dwfOptions; dwError = RasSetEntryProperties( NULL, PvcName, &RasEntry,sizeof(RASENTRY), NULL,0 );

    C / C++ / MFC help

  • RasApi error
    K Kannan Ramanathan

    Please remove [nospam] from my email ID for replying. I dont know why, but the forums is not allowing me to modify my msg anymore; says "You are not authorised to modify/delete". I guess, because of the email IDs mismatch, this error is coming. --------- Kannan Ramanathan kannan.ramanathan@st.com

    C / C++ / MFC help
  • Login

  • Don't have an account? Register

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