CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: AlanGRutter

Page 1 of 13 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    0
    Views
    8,198

    AJAXControlToolkit and Master Pages

    Hi gurus,

    I have a web site that uses the AJAX Control Toolkit v3.020820.28853 and master pages. Everything works absolutely perfectly on my development machine, however when I deploy the site to...
  2. Re: will this lead to memory leak? it shouldn't, should it?

    I believe it should get picked up by the garbage collection.

    Personally, IMHO, I believe responsibility for closing the FileStream lies within the scope of the object that created it. If used on a...
  3. Replies
    8
    Views
    1,205

    Re: Broadcasting in Networks

    What you are doing is multicasting which requires a UDP connection and special IP address ranges. I suggest you start with a Google search for UDP multicast and see what turns up.

    Regards
    Alan
  4. Replies
    2
    Views
    581

    Re: Linker errors confuses me

    The linker is telling you that your function is defined twice in different object modules.

    It has already encountered a publicly visible function body for CallbackProc that takes two longs as...
  5. Re: Issue with ABCs - ERROR C2259

    An ABC acts solely as a base class for inherited classes. You cannot instantiate an ABC - you must instantiate one of the derived classes using new and assign it to a pointer to the base ABC.


    ...
  6. Replies
    1
    Views
    491

    Re: how to pass interger value as...

    Is your code running server side or client side?
    ASP.NET 2.0 ?

    I'm not very familiar with this stuff but on client-side don't you just need to get the element by id (getElementById) and then set...
  7. Replies
    7
    Views
    966

    Re: Pointers and "explode" function

    You could use the strtok() function to split up your line into tokens.

    Regards
    Alan
  8. Replies
    8
    Views
    1,842

    Re: looping infile

    Here's my attempt - took me about 1 hour



    //Narrative: This is a program that -
    // 1) reads in the number of salespeople
    // 2) reads in the name of the salesperson
    // 3) reads the quota for...
  9. Replies
    4
    Views
    1,103

    Re: Please Help Calling function

    This is different to what you originally posted and is why I couldn't make any sense of the statement you did provide. It is still ambiguous

    2 times first minus z

    is that

    (2 * first) - z
    ...
  10. Replies
    8
    Views
    1,842

    Re: looping infile

    When you type a message, the toolbar has a 'Code' icon - if you click it it pops up a box showing HTML style tags. Use these around any code that you post and it will keep the formatting - you can...
  11. Re: LinkerError- unresolved external symbol

    Submit or attach your full code.
  12. Replies
    4
    Views
    1,103

    Re: Please Help Calling function

    a)


    int FunctionOne(int x, int y)
    {
    return (x > y) ? (x + y) : (x - (2*y));
    }


    b) Item 5 makes no sense to me. Whose previous value? Did you mean z greater than twice value of x?
  13. Replies
    8
    Views
    1,842

    Re: looping infile

    Post your whole code - otherwise no-one can see exactly what you're doing.

    Regards
    Alan
  14. Replies
    8
    Views
    1,842

    Re: looping infile

    You will not get many replies if you don't use code tags. Also post your whole code and any sample data you are using.

    Just create a loop (either a for or a while) for the number of salespersons...
  15. Replies
    1
    Views
    923

    Re: Binary to ASCII converter

    I have a couple of questions which may help you get some replies

    1) Which order are the bits in the file in (Little Endian or Big Endian) ?
    2) You ask 'What am I doing wrong?', yet you provide no...
  16. Re: Arrays of Strings- stumbling over a very basic question

    1. You need to use the array form of delete



    delete [] addrs;


    since you declared an array. You should also have a copy constructor.

    2. There's nothing wrong with the declaration - you...
  17. Replies
    29
    Views
    4,394

    Re: Why are these 2 code blocks not the same?

    Well you haven't searched around much on the net then since in less than 1 minute I've found loads of resources on debugging.

    Try this one for starters

    Visual Studio Debugging

    As Paul said...
  18. Replies
    9
    Views
    894

    Re: to "goto" Or not to "goto"????

    I have been programming for at least 25 years and in all that time I can honestly say I have never ever used a goto statement. I've always found a cleaner way.

    If you were working for me and you...
  19. Replies
    12
    Views
    1,179

    Re: problem with c

    cin is for 'C++'. The poster said originally that it's a 'C' assignment.
  20. Replies
    5
    Views
    1,272

    Re: No such file ERROR

    As it says in the KB article, the include file you require can be found in the DDK (Driver Development Kit) in the following location \Ddk\Src\Storage\Inc

    So you need to get a copy of the DDK from...
  21. Replies
    2
    Views
    569

    Re: Little question about char convertion

    Are you saying you replaced

    char st[]; by
    char *st;

    You haven't allocated any memory for the variable - you need to do this in both cases. I think you are lucky in the first case.

    Try
  22. Replies
    8
    Views
    1,301

    Re: How to fix this?

    Exterminator - the below description is what I was hinting at



    Regards
    Alan
  23. Replies
    10
    Views
    1,619

    Re: memory alignment of a struct

    What is being said about alignment is true however you generally do not need to specifically pad out your data structures so that they align on word boundaries as the compiler will do this for you.
    ...
  24. Replies
    8
    Views
    1,301

    Re: How to fix this?

    AFAIK you can't initialise static members inside the class. You need to have



    class Movie
    {
    ...
    static Graph actorGraph;
    }
  25. Replies
    5
    Views
    657

    Re: Macros

    Your macro is turning MIN into 7;
    #define statements do not ordinarily end in a semi-colon. Additionaly your main should return something.

    The correct code is



    #include <iostream>
    #include...
Results 1 to 25 of 303
Page 1 of 13 1 2 3 4





Click Here to Expand Forum to Full Width

Featured