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

Search:

Type: Posts; User: aijazbaig1

Search: Search took 0.02 seconds.

  1. Re: Error setting input parameter in instance of CIM class/WMI

    Hello S_M_A.

    Firstly. Im sorry if I sound naive at times, but im a complete noob when it comes to COM. Nevertheless, I think I will have to take ur points one at a time.

    I used the following...
  2. Re: Error setting input parameter in instance of CIM class/WMI

    I don't quite understand...could you be a little more elaborate...

    thanks
  3. Replies
    4
    Views
    1,089

    Re: Segmentation Fault

    Hello.

    An efficient way to debug is to use WinDbg which is a great tool from microsoft..and its free. This must be an exe right?

    You can open the exe directly insite the debugger. Make sure the...
  4. Error setting input parameter in instance of CIM class/WMI

    Hello.

    I am using C++ to write code to create a network 'team' on a machine having an intel proset network adapter. I am using the IANet_TeamOfAdapter CIM class as mentioned in their WMI scripting...
  5. Replies
    4
    Views
    667

    Re: menu of character strings

    Hello there.
    If u read the specification for the fflush function it very clearly mentions that its effect is undefined for input streams making the function a not too good choice for cleaning input...
  6. Replies
    4
    Views
    667

    Re: menu of character strings

    Huy there.
    I corrected some mistakes and the program below seems to work. Atleast, it behaves better than the one above. In the program above, I initialised flag to 0 just once at the beginning of...
  7. Replies
    4
    Views
    667

    menu of character strings

    Hello.
    I am trying to write a simple program which accepts input string from the user and compares the scanned string to each string in an array of character strings. For the time being, I assume...
  8. Replies
    4
    Views
    516

    Re: passing arrays to functions

    Hello.
    What u did krishnaa wouldn't help to do the formatting though it could be used to print the elements of the array.

    What seems a plausible explanation to me is that when we pass a 1d array...
  9. Replies
    4
    Views
    516

    passing arrays to functions

    Hi there.

    Its me again!..and this time I have a silly question to put forward. it may sound silly but it has been troubling me from the inside.

    I don't really understand why can i pass a one -...
  10. Replies
    23
    Views
    1,625

    Re: getting string size at run time

    Hello.
    Thanks a lot for so many wonderful comments that I received. Well this has put me into some kinda dilemma if I should abandon what I am presently doing with C?
    Well, another reason why Im...
  11. Replies
    23
    Views
    1,625

    Re: getting string size at run time

    Hello.
    I am indeed trying to write a C program not a C++ program. But after reading that paper; the link of which you provided in your reply,I am rather impressed by the ease of using C++ vis-a-vis...
  12. Replies
    23
    Views
    1,625

    Re: getting string size at run time

    Hello..
    I have come up with the following code which uses a char pointer to allocate memory at run time on the heap.
    It then uses these allocated memory locations to store the characters...
  13. Replies
    23
    Views
    1,625

    Re: getting string size at run time

    Hi.
    I think the problem with this is that I am using an uninitialized pointer as said above by one of our pals here.
    But a pointer variable can be assigned to only three things right, viz. 0, NULL...
  14. Replies
    23
    Views
    1,625

    Re: getting string size at run time

    Hi.
    I tried the following little code snippet to read a string character by character and store it in contiguous memory locations giving it the feel of an array.

    heres my code:


    #include...
  15. Replies
    23
    Views
    1,625

    getting string size at run time

    Huy.
    I am trying to write a simple program to get the size of two strings at run time. I mean I let the user enter the strings and then I wanna use the sizeof operator to compare the sizes of the...
  16. Re: Logic error with recursion to find smallest in an array

    Hi.
    I have tried the following recursive version and it works fine (as long as no two elements have the same value )

    #include <stdio.h>
    #define SIZE 6

    void printarray(const int [],const int...
  17. Logic error with recursion to find smallest in an array

    Huy.
    I am using recursion to find the smallest number in a given array. To keep it simple I have fixed the array length at 6.
    Heres my code. (I am using Visual C++ version 6)

    #include <stdio.h>...
  18. Replies
    4
    Views
    931

    Re: Error C2061 in header file!!

    Thanks a lot u guys for the quick reply. However I had to adopt this methodology as using it without absolute paths was leading to an error which mentioned that it couldn't find the header file...
  19. Replies
    4
    Views
    931

    Error C2061 in header file!!

    Im trying write a simple program to calculate the factorial of a number using VC++ 6,0 and i get an error which C2061 saying that factorial# is not an identifier and it couldn't be found and needs to...
Results 1 to 19 of 19





Click Here to Expand Forum to Full Width

Featured