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

Robin

@Robin
About
Posts
15
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Recommed timeline editor component
    R Robin

    Hi I'm looking for a time line editor component, much like how Adobe Premier or those time line editing music tools. Is there such one around to recommend?

    Windows Forms adobe tools question

  • Ok, who was the genius at microsoft who..
    R Robin

    For the same reason that Ctrl-S and Ctrl-Z are next to each other;P

    The Lounge csharp visual-studio

  • Inexperienced with COM arrays
    R Robin

    Ah, I spotted an mistake It should be Dim vbArray(2) instead of Dim vbArray(3) because for reasons I cannot fathom, vbArray(2) means a 3 element array. Anyway, the vbscript in the form above works. I am unable to explicitly declare the dim type though. Dim vbArray(2) As Double generates an "Expected end of statement" error. This seems to be more of the scripting environment problem rather than mine. X|

    COM com data-structures json help

  • Inexperienced with COM arrays
    R Robin

    That's a very good idea you have there. Unfortunately (fortunately?), it's weekend party and I have to wait till next week to try it out. Thanks for your time. Very appreciated.

    COM com data-structures json help

  • Inexperienced with COM arrays
    R Robin

    Ernest Laurentin wrote: Maybe the API accepts integer value not float! Thanks for the reply. Quite impossible. It should be taking either float or double because in the UI, one can enter decimal places for the values. They can't be using fixed point maths. But I will try again just to make doubly sure.

    COM com data-structures json help

  • Inexperienced with COM arrays
    R Robin

    Ernest Laurentin wrote: Did you try to pass it as a reference instead? Yup, didn't work too. The API is a Avid SoftImage XSI v2 SDK. It has virtually ZERO documentation so I'm guessing how to call it by looking at headers and vbscript examples. The vbscript version works like this Blah( array(5,6,7) ) The C++ version is defined as virtual HRESULT STDMETHODCALLTYPE Blah( /* [in] */ VARIANT in_pNewEffPos ); The worst part is the API runs successfully (HR succeeded) but the results are wrong. I'm not well experienced enough with COM or I would have condemn it as a bug with their API straight away.

    COM com data-structures json help

  • Inexperienced with COM arrays
    R Robin

    I need pass an array of data in a variant to an API call. I'm not sure if I'm passing the data correctly as I'm new to COM. I appreciate if someone could verify the below snippet has a obvious problem when using COM arrays because the API call does not produce the intended results with the array data I passed. // generate 3 element array of floats SAFEARRAY *psa = SafeArrayCreateVector( VT_R4, 0, 3 ); float HUGEP *dp = 0; SafeArrayAccessData( psa, (void HUGEP**)&dp ); dp[0] = 6; dp[1] = 7; dp[2] = 8; // set array to 6,7,8 SafeArrayUnaccessData( psa ); VARIANT va; va.vt = VT_ARRAY | VT_R4; va.parray = psa; // pass va to API that takes a variant Blah( va ); SafeArrayDestroy( psa );

    COM com data-structures json help

  • Game devs come out
    R Robin

    Doing it in 3D would be so much easier. If you must force pain on yourself, you can use sprites but you need to be able to rotate them on runtime. It basicallys becomes 2D image manipulation calls. Whether the speed can be realtime then is questionable.

    The Lounge question game-dev help

  • Is there a Visual Studio Compile Option
    R Robin

    You can set where the output executable/dll location in the "Link" tab in project options (Alt-F7) ..

    C / C++ / MFC csharp visual-studio debugging performance help

  • Copy constructor in Exception Class
    R Robin

    I have a exception class which I would want to be catch by ref only, so I declare the copy constructor private. However, VC++ 6 refuses to compile, giving me an error an error that the exception object cannot be thrown because of an inaccessible copy constructor. But upon checking, the copy constructor is only called when the exception object is caught by value eg catch(MyExceptionClass e) // only this needs the copy constructor {} catch(MyExceptionClass &e) // this doesn't need the copy constructor {} So has anyone been able to ensure the exception object is to be catch by ref only, not value??

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

  • SEH problem in release mode
    R Robin

    Just to let u know.. There seems to be a problem with SEH raising exceptions in release mode (using VC++ 6 SP4) In release mode, a divide by zero does not raise any exceptions but it does in debug mode. However, if I uncomment the cout line after the divide (in release mode), an exception would be raised. If the program was compile with the /EHa option (asynchronous exception), then an exception is always raised. I didn't do an disassembly but it's probably due to the compiler not generating the divide code since it's not used. [source] #include < windows.h > #include < iostream > #include < stdexcept > using namespace std; void SEH_Translator( unsigned int u, EXCEPTION_POINTERS* pExp ) { throw exception("SEH exception"); } void main() { try { _set_se_translator(SEH_Translator); int x,y; x = 9999; y = 0; int z = x/y; // cause a divide by zero exception // cout << z << endl; // uncommenting this throws an exception in release mode } catch(...) { cout << "Exception caught" << endl; } } [/source]

    C / C++ / MFC c++ debugging help announcement

  • Exception: Async Vs Sync
    R Robin

    From the MSDN "Catching hardware exceptions is still possible with the synchronous model. However, some of the unwindable objects in the function where the exception occurs may not get unwound, if the compiler judges their lifetime tracking mechanics to be unnecessary for the synchronous model." The above statment make me feel uneasy about sync model, although it seems much better since it generates less code? Can anyone makes sense on what the above is trying to say plz?

    C / C++ / MFC css visual-studio hardware question

  • Help: GDI functions not working in OnInitDialog
    R Robin

    try looking at OnCtlCOlor Function AFter InitDialog it would call this function which does the painting of all dialog controls and the dialog RObin

    C / C++ / MFC graphics question data-structures help

  • change the font of the Mainframe Title
    R Robin

    How do I change the font of the Application Title that is on the Mainframe window thanks robin

    C / C++ / MFC question

  • My Vis Studio editor runs like a dog
    R Robin

    If its an MFC based project you could try deleting the .dsw(workspace ) file. Create a new blank workspace and insert the dsp file into this workspace. robin

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