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
R

RaajaOfSelf

@RaajaOfSelf
About
Posts
57
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Message loop Question
    R RaajaOfSelf

    Thanks !!That does answer my question . Cause is my effort; Effect is God's effort

    C / C++ / MFC question

  • Message loop Question
    R RaajaOfSelf

    My question was that i expected an dead lock but it did not happen .I just wanted to understand whats really happening behind the scenes of Send Message() ANyway ,Thanks ! Cause is my effort; Effect is God's effort

    C / C++ / MFC question

  • Message loop Question
    R RaajaOfSelf

    As i have understood the message loop dispatches messages synchronously.i.e it executes the handler to that message and then moves to another message . Also ,Sendmessage(MESSAGE1) call is synchronous i.e. it executes the handler for MESSAGE1 and then returns. WIth this assumption ,iam posting this question. Let's say i have handled the KEYDOWN message as OnKeyDown(). I do this OnKeyDOwn() { SendMessage(WM_MOUSEMove...) } Iam expecting that SendMessage() as opposed to PostMessage should create a deadlock as it executes synchronously-Its trying to execute /put the message in the same loop from where it was called .But it does not happen .Can Somebody explain this ? Does this mean SendMessage() does not post the message in the message loop ,but directly calls WndProc() or something like that ? Cause is my effort; Effect is God's effort -- modified at 0:48 Tuesday 22nd November, 2005

    C / C++ / MFC question

  • reduce size of CFileDialog
    R RaajaOfSelf

    DOn't take this personally danny !!!Iam no expert ,iam just sharing what i have tried in Visual Studio ..thats it . I just refrred to the example in MSDN http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/\_mfc\_cwnd.3a3a.calcwindowrect.asp If thee link is not working ,refer to Cwnd ::calWindowRect in MSDN and refer to the example given at the end . calcWindowRect will calculate the window Rectangle ,given the client reactangle size (required size). In this case ,ur call to calcWindowrect will return the same client rectangle size as m_hWnd of that window is NULL .CHeck CWnd::GetStyle() and CWnd ::calWindowrect() . In this case CalcWindowRect won't be useful at all .U can directly use Create with required window size . Cause is my effort; Effect is God's effort

    C / C++ / MFC

  • reduce size of CFileDialog
    R RaajaOfSelf

    CFileDialog myDialog myDialog.CalcWindowRect() myDIalog.create .... If this is what you have suggested ,then CalcWindowRect () call is going to fail as the window is not yet created ! Check for the Assert statement in CWnd ::GetExStyle() which is accessed in CalcWindowRect() Cause is my effort; Effect is God's effort

    C / C++ / MFC

  • reduce size of CFileDialog
    R RaajaOfSelf

    I guess this method won't work as the HWND of the CFileDialogis not yet created ! (Worst case - try with Hooks ) . Install a hook before Do Modal () Handle the Hook for it and delete the hook after that . Cause is my effort; Effect is God's effort

    C / C++ / MFC

  • reduce size of CFileDialog
    R RaajaOfSelf

    MoveWindow may not work ,if you are using DoModal ()directly on a object of CFileDialog Inherit a class from CFileDialog and over -ride the OnInitdialog .Now include the MoveWindow() Cause is my effort; Effect is God's effort

    C / C++ / MFC

  • I want a Timer fuction on Non UI thread
    R RaajaOfSelf

    I Guess using CreateWaitableTimer with SetTimer and WaitForSingleObject may block ur thread ! Cause is my effort; Effect is God's effort

    C / C++ / MFC design

  • I want a Timer fuction on Non UI thread
    R RaajaOfSelf

    If you feel teh timer function takes alot of time .then You can do this . Wherever_Timer_creation_required { setTimer(X,Y,MULL) pthread=AfxCreateThread(); } OnTimer() { pthread->PostThreadMessage(Message) } Now you can handle that message in pthread . Cause is my effort; Effect is God's effort

    C / C++ / MFC design

  • status of FTP
    R RaajaOfSelf

    Iam not sure what you want here ... 1.If you want to display the progres s,then u can use progress control .CProgressCtrl is the class. 2.CFtpConnection is teh class for FTP Cause is my effort; Effect is God's effort

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

  • Trap and remap a key for a specific application
    R RaajaOfSelf

    Refer PretranslateMessage() is mSDN and u will find the answer for that probably !!! Cause is my effort; Effect is God's effort

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

  • Automatically close message box
    R RaajaOfSelf

    This would the nearest i can think of ... 1.Before you call any function of that DLL ,call SetWIndowsHookEx(WH_CBT,CBTProc ,GetApp()->m_hInstance , GetcurrentThreadId()) You need to write the CBTProc Function .refet MSDN for it .In that function you can trap any messages for all the windows create din ur application . 2.AFter you are thru with calling the DLL function ,call UnhookWindowsHookEx() To read more ,there is en excellent article by Nishant and SHog .If you follow the MFC way ( CDelayMessageBox 2 ) ,you can do this easily . Click This to know more .. Cause is my effort; Effect is God's effort

    C / C++ / MFC help question

  • Create a virtual file
    R RaajaOfSelf

    Hi , WHat about memory mapped files ??? Iam not sure what you are looking for ....but looks like memory mapped file might help you ... Cause is my effort; Effect is God's effort

    C / C++ / MFC help question

  • How do you get the functions exported by the dll and
    R RaajaOfSelf

    http://www.mindcracker.com/mindcracker/c\_cafe/dll/dll\_tut1l.asp Please refer this .....Basically u need to inform the compiler using some macros that these functions need to be exported Cause is my effort; Effect is God's effort

    C / C++ / MFC

  • AutoUpgrade Feature ?
    R RaajaOfSelf

    Hello , Is there any SDK to implement the AUto-Upgrade feature .I am writing a application in vc++ .Is there anything ,that i can use some SDKs that can be used to check for upgrades for my application from a URL /server ? Cause is my effort; Effect is God's effort

    C / C++ / MFC c++ sysadmin question

  • opening a web file
    R RaajaOfSelf

    I don't think you can do that directly ...You can try CHttpFile class in MFC which will help you ... Cause is my effort; Effect is God's effort

    C / C++ / MFC com question

  • Error in COmpilation of VC++ Code
    R RaajaOfSelf

    Hello Ima developing a VC++ applictaion .When i try to build a applicatin that is statically linked to MFC ,it throws me this error error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in libcmt.lib(typinfo.obj) Can somebody help me how to fix this error ?:) Cause is my effort; Effect is God's effort

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

  • VC++ method to get List of Pluggins installed
    R RaajaOfSelf

    Hello , Iam in search of a vc++/WIn API code or interface which gets the list of pluggins installed for IE in the system Cause is my effort; Effect is God's effort

    C / C++ / MFC c++ json

  • paige32.dll PBM
    R RaajaOfSelf

    hello , Is there any documentation available for paige32.dll ??Is there any source code for this dll ??? Cause is my effort; Effect is God's effort

    C / C++ / MFC question

  • How to Capture HTML events in vc++?
    R RaajaOfSelf

    Hello , Iam developing a Secure browser .The secure browser needs to capture the events in an HTML Page and execute a DLL function.One way is to capture it in HTML page thru on-click handlers and call the DLL function from the HTML event handler( thru Java script).But this is not required . What i need is to capture HTML page button clicks by the vc++ app which launches the HTML page .Iam using internet explorer's functions to display the HTML page .

    C / C++ / MFC c++ java html tools 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