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
P

Pharago

@Pharago
About
Posts
15
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • VS2010 CTP
    P Pharago

    I've been working with VC6 like... almost 8 years, yes it had a lot of problems but it was simple and i have to admit i've never used MFC or liked a bit of it as i'm a ATL/WTL proud guy. Now i've seen all other VS and the advent of the .NET focussed snafu and even feared i will never find a worthy replacement for the old VC6, but i have to tell you, VC9 IS the new VC6, yes, the one inside VS2008. At least for me, this is the one, i'm more than happy with it, now not only all my old VC6 code has been ported to VC9, i've done it porting everything to Unicode and 64 bits compilable code, as everyone knows the world is made in Unicode, i'm a happy panda again and i think ill pass VS2010 and the rest to come for another decade or so. :laugh: :laugh:

    The Lounge csharp c++ php visual-studio wpf

  • How would you solve that?
    P Pharago

    Use a virtual machine, VMWare or something like that, install an OS inside and let the app run inside it without compromising the entire server, if the app crashes or eats all the VM asigned memory, well, you will still have the chance to reset the VM without bringing down the whole server, all other options will eat most of your free time and probably not going to fix your problem. Regards.

    The Lounge com sysadmin performance question

  • Damn I hate IE7
    P Pharago

    this is sad, going to OSX is like going to Linux and paying for it :laugh:

    The Lounge csharp help announcement

  • There is no such thing as time
    P Pharago

    its a waste of time if that last post is the only thing you can come with

    The Lounge game-dev

  • There is no such thing as time
    P Pharago

    relativity is *just* a theory, nothing more, it dosnt even qualify as a real science, just believing something dosnt make it true, not to mention that your argument has no evidence to suport it, quantum? did they stop time? dont think so.

    The Lounge game-dev

  • There is no such thing as time
    P Pharago

    first u have to give some proof that another dimesions exist at all, u see, this is the place when ppl mix maths and physics, maths can make anything you want to, your only limit will be your imagination and of course maths itself, but physics arent maths u cant just cruch some numbers are tell everyone that this or that exist just because your maths say so, u will have to prove it and if you try and fail your maths could still be right, so no dimesions please, keep your feet on earth regards jan

    The Lounge game-dev

  • There is no such thing as time
    P Pharago

    i agree, theres not such a thing as time, u cant take time from some place and move it to another, u cannot stop time, u cannot make time go backwards, time is the name we have given to a concept, our way to measure how many events have happened between... other events. time is measured now using atomic clocks, some scientist discovered that some atomic nuclei undergo some changes periodically in a stable form, precision comes to mind, 10^-9 seconds per day... so imo, time, if it were to be inluded into any formula, it should be handled with care, because its a concept that never goes backward, cant be exchanged, cannot be stopped, simply flows whether u want, belive, or anything, its a shame the scientific community its swamped into relativistic bullshit, time dilation, the twin brothers paradox, seems to me that some human especimens still feel the need to hold into the chance of the magical or mystical man beeing a possibility, and dont start with the e=mc2 'magic' as some of us always knew that its the kinetic energy formula to which someone just exchanged velocity with the speed of light anyway, this is not easy matter (xD) and the web is full or controversial opinions and flames. take care, regards jan

    The Lounge game-dev

  • What is a great installer?
    P Pharago

    After using many installers thru the years ive arrived to the conclusion that there is none as good as the combination of NSIS[^] and HM NIS Edit[^] , i agree they dont have a 'nice' intuitive UI, but first, they are free, easy to learn (we are coders arent we) and bla, bla, bla... , works great for me you can make your own opinion after trying it, no nonsense installer program flow (if you get my point :)) awesome control, no need to spill target system with anything else but what you really need on it, man this is going to be my longest post after some years, lol cheers, o//

    The Lounge csharp c++ question css business

  • Banning GPL articles
    P Pharago

    5 - There are tons of places out there where you can post GPL code, i also agree that GPL violates CP's submission guidelines. Its a restrictive license to say the least. Regards.

    The Lounge c++ com architecture question

  • How to add Timer in activex ?
    P Pharago

    You need to start the timer. UINT nMilliseconds = 1000; ::SetTimer(hWnd,ID_TIMER,nMilliseconds,NULL); when finish stop it with ::KillTimer(hWnd,ID_TIMER);

    ATL / WTL / STL com tutorial question

  • Need help to return string value from COM
    P Pharago

    STDMETHODIMP CYourClass::YourATLMethod(BSTR Filepath, BSTR* ReturnString) { use the BSTR FilePath to get the BSTR to return, you can also use a LPCOLESTR CComBSTR TheReturnString = L"the string"; *ReturnString = SysAllocString(TheReturString.m_str); //or any BSTR or LPCOLESTR to be allocated by the system using the pointer given by the com client return S_OK; }

    ATL / WTL / STL c++ help csharp dotnet com

  • How do I do this ? [modified]
    P Pharago

    Hi, you have variuos options in this case, you can try and use some kind of collection enumeration based on the variant safearrays to try to please com clients like VB, or you can use the raw and simply way of having a property that inputs an index and returns the value in the array. Something like: idl: HRESULT get_CollectionItemName([in]long Index,[out,retval]BSTR* pVal); ClassName.cpp STDMETHODIMP ClassName::get_CollectionItemName(long Index,BSTR* pVal) { lookup vector or container using index copy item or item member on return value *pVal return S_OK; } This method is fairly simple of implement, you don't need to get very involved in com specific code, and you can use simple datatypes and the kind of array of your choice.

    ATL / WTL / STL question c++ data-structures

  • WTL child window tabbing order
    P Pharago

    use accelerators

    ATL / WTL / STL question c++ help announcement

  • How to lock child window from resizing in MDI ?
    P Pharago

    use the WM_NCCALCSIZE msg to set the dimensions of the dialog to the same min/max size, use it in the frame :| regards

    ATL / WTL / STL tutorial c++ wpf com question

  • What is the defference about _T("abc") and "abc"?
    P Pharago

    _T("abc") translate "abc" to unicode on unicode builds and remain "abc" on non unicode builds, see tchar.h hope that helps, regards

    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