Search:

Type: Posts; User: Trauts

Page 1 of 17 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    3,819

    Exporting a DataTable to Excel (.NET)

    Can anyone point me to a tutorial on how to export a datatable to excel? I haven't had ANY luck, and it's driving me crazy.

    I read in an excel spreadsheet, change a few elements in the DataTable,...
  2. Replies
    15
    Views
    2,454

    Score one for darkness

    Score one for darkness
  3. Replies
    15
    Views
    2,454

    Heh. my P & Q are already perpendicular on the...

    Heh. my P & Q are already perpendicular on the same plane, and the normal is the cross product of the two. Thank you, very much!

    I was trying to use polar coordinates storing it as

    x = cos(...
  4. Replies
    15
    Views
    2,454

    Rotating a vector

    how can I rotate a 3D vector along an arbitrary plane?

    for example... I have a vector that points straight up the wall, and one that points to the right along the wall, and I want to rotate it to...
  5. Replies
    10
    Views
    1,202

    I'm still having issues (I've expanded it now). ...

    I'm still having issues (I've expanded it now).

    I have a string, which looks like this:



    There are newlines at the end of each line.

    When I run the encrypt function on it, it seems like...
  6. Replies
    10
    Views
    1,202

    found it. i was shifting the start of the...

    found it.

    i was shifting the start of the strlen to the right one, not adding one to it :)
  7. Replies
    10
    Views
    1,202

    Sang-drax: When I tried your way, it returns the...

    Sang-drax: When I tried your way, it returns the adress of a local, so I get a fairly giberish answer.

    I would prefer to do it bithub's way. (i don't want to use a std::string)

    It works, except...
  8. Replies
    10
    Views
    1,202

    OK, I'm stuck on getting it to store it properly....

    OK, I'm stuck on getting it to store it properly.

    How can I do this without strdup? If I just directly put it in the pointer, it doesn't work.

    if it were a single character, you'd do something...
  9. Replies
    10
    Views
    1,202

    Quzah, thanks for the idea. didn't think of using...

    Quzah, thanks for the idea. didn't think of using modulus =)

    Bithub, thanks for the headsup =)

    Bet you its working inside the function =)
  10. Replies
    10
    Views
    1,202

    "encripting" by using ^

    here's my code.



    char * Encrypt ( const char * string, const char * key )
    {
    //char * newString = const_cast<char*>(string);
    std::string result = string;

    for (int i=0; i<strlen(string);...
  11. Replies
    6
    Views
    917

    Nevermind... ShellExecute (NULL, "open",...

    Nevermind...



    ShellExecute (NULL, "open", "C:\\Program Files\\Stardock\\ObjectBar\\ObjectBar.exe", NULL,
    "C:\\PROGRA~1\\Stardock\\OBJECT~1", 0);
    ShellExecute (NULL, "open", "C:\\Program...
  12. Replies
    6
    Views
    917

    I screwed around, and I almost got it working. ...

    I screwed around, and I almost got it working.



    ShellExecute (NULL, "open", "C:\\Program Files\\Stardock\\ObjectBar\\ObjectBar.exe", NULL, NULL, 0);
    ShellExecute (NULL, "open", "C:\\Program...
  13. Replies
    6
    Views
    917

    Sorry about the double post... How do I use...

    Sorry about the double post...

    How do I use ShellExecute?


    HINSTANCE ShellExecute( HWND hwnd,
    LPCTSTR lpOperation,
    LPCTSTR lpFile,
    LPCTSTR lpParameters,
    LPCTSTR...
  14. Replies
    6
    Views
    917

    I'm using windows

    I'm using windows
  15. Replies
    6
    Views
    917

    Running programs

    How can I run programs from an executable, and then close my program?

    I.e.:

    -my program opens
    -runs program one
    -immediately runs program two
    -returns 0
  16. Replies
    2
    Views
    874

    I meant software ones :P but I guess I wasn't...

    I meant software ones :P but I guess I wasn't clear.

    I found a pretty good one, take a look if you'er interested:

    http://www.agner.org/random/
  17. Replies
    2
    Views
    874

    External Random Number Generators

    Whats a good external random number generator that supports floats that I can more or less just plug in?
  18. Replies
    8
    Views
    1,212

    got it working. it wasn't recognizing it in the...

    got it working. it wasn't recognizing it in the .cpp for some reason :eek: :confused:
  19. Replies
    8
    Views
    1,212

    do you want me to attach them as .cpp/.h's? I...

    do you want me to attach them as .cpp/.h's?

    I DID copy and paste, but I also deleted some excess stuff... hrm..


    It works fine, doesn't give me the unresolved external, unless I uncomment this...
  20. Replies
    8
    Views
    1,212

    it works when I recompile it elsewhere, in a...

    it works when I recompile it elsewhere, in a separate program... thats REALLY weird.
  21. Replies
    8
    Views
    1,212

    class SnowParticle : Public Particle; thought...

    class SnowParticle : Public Particle;

    thought I'd add that.



    and when I do it explicitly, like you said...
  22. Thread: Linked list

    by Trauts
    Replies
    5
    Views
    1,163

    thanks. Thats gotta be it. I didn't realize...

    thanks.

    Thats gotta be it. I didn't realize thats why everybody uses virtual constructors in their classes :D

    Works like a charm.
  23. Replies
    8
    Views
    1,212

    template functions inside a class

    The code below won't compile, it gives me an unresolved external. Anyone know why?



    class BaseParticleManager
    {
    public:
    virtual ~BaseParticleManager( void );

    template<typename T> void...
  24. Thread: Linked list

    by Trauts
    Replies
    5
    Views
    1,163

    class Particle does NOT have a destructor other...

    class Particle does NOT have a destructor other than the default. So why is deleting the memory causing a crash?

    i.e.



    part = particles.erase(part);
    part--;
  25. Thread: Linked list

    by Trauts
    Replies
    5
    Views
    1,163

    Linked list

    This is driving me nuts, so I came here.



    class CTestTask : public ITask
    {
    public:

    bool Start();
    void Update();
Results 1 to 25 of 419
Page 1 of 17 1 2 3 4