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

Search:

Type: Posts; User: juanpast

Page 1 of 21 1 2 3 4

Search: Search took 0.15 seconds.

  1. Replies
    2
    Views
    998

    Re: problem with printf in loop

    Hi.

    Yo can add more tabs:


    printf("%s\t\t\t\t\t\t%2d\n", string_array[counter], ages[counter]);

    or you can add spaces to fit to NAME_SIZE:
  2. Replies
    2
    Views
    1,460

    Re: need some suggestion on image processing

    There are a lot of profesionals here.... ;)


    Perhaps, as GCDEF suggest, post better in these forums:


    http://forums.codeguru.com/forumdisplay.php?60-Graphics-Programming
    ...
  3. Replies
    17
    Views
    7,257

    Re: Replace particular line in a file

    CStdioFile SaveFile_read;
    CStdioFile SaveFile_write;

    CString strFilePath_read = _T("C:\\Sara\\temp.txt");
    CString strFilePath_write = _T("C:\\Sara\\temp_new.txt");

    BOOL bResult = ...
  4. Replies
    2
    Views
    1,162

    Re: WinInet progress bar

    Hi Vaas.

    Are you using a new thread for reading the file?

    Normaly, a thread is used to read the file and send message to the parent window to update the progress control.

    And, what is...
  5. Re: ODBC problem updating from Visual Studio 2005 to 2012

    Hi

    m_pTblPlot is not defined.... can you post a example that we can compile?
  6. Replies
    2
    Views
    826

    Re: Struct at the inside of class

    Hi


    class CAtributes {
    public:
    CAtributes();
    ~CAtributes();
    int age, height, weight;
    };
  7. Replies
    1
    Views
    885

    Re: Orientation of a polygon

    Hi.

    http://debian.fmi.uni-sofia.bg/~sergei/cgsr/docs/clockwise.htm




    int ClockWise(CPoint2D *p,int n)
    {
    int i,j,k;
  8. Replies
    8
    Views
    11,071

    Re: Multiple apps accesing same file on a server

    Hi.

    You can use MSMQ (or equivalent) to send notifications to the server and receive response in clients. In the server side you can use another exe to process queue menssages and update the file....
  9. Replies
    4
    Views
    1,534

    Looking for chars in string.

    Hi gurus.

    I'm looking for a algorithm to search portions of string that have the same caracter. The only possible values are: a,n and g

    Char index: 0 1 2 3 4 5 6 7 8 9 RESULT...
  10. Track points 2D. Split and generalize polylines.

    Hi gurus.

    I'm working with track points. I need separate the original track in parts that are not duplicate. I'm looking for algorithm to solve examples like these:

    Example 1: if target is...
  11. Replies
    1
    Views
    1,509

    [RESOLVED] ADO compatibility

    Hi gurus.

    I’m having a trouble with ADO. I have this code (below), it works fine in a developer machine (Windows 7 and Visual studio 10) but compiled program not works under Windows Server 2003...
  12. Re: Multiple-readers, single-writer synchronization lock between processes

    Are you tryed to use TryEnterCriticalSection unless EnterCriticalSection?

    I not read all post of the thread, I not have so time... sorry if this way are explored before...

    Best regards.
  13. Replies
    20
    Views
    3,429

    Re: UTF8 Conversion problem

    Hi.

    If you stop the debugger in "WriteToFile("Test.txt", wText);": is correct the value of wText?
  14. Re: Reading and Writing serial ports simultaneously using threads

    You can use Mutex, Semaphore or you can use MSMQ to write data with thread 2 and check the queue with thread 1.

    Best regards.
  15. Replies
    0
    Views
    722

    ADO Trouble. W2008 R2 Enterprise

    Hi gurus.

    There are a reported error with ADO:

    http://support.microsoft.com/kb/2517589/en-us

    Method 2 to become a solution is:
  16. Re: polymorphic sort, overloading operator >

    Thanks.

    Your notes are very appreciated and useful.




    Good!
  17. [RESOLVED] polymorfic sort, overloading operator >

    Hi gurus.

    I need to create a class witch it's operator > are polymorfical.

    This is the code of .h file:




    #define CRITERIO_ORDENACION(Fn,a,b,c,d,e) UCHAR (* Fn[5])(const...
  18. Re: Displaying a bitmap from memory to a Dialog or CStatic

    Hi.

    You must get the CDC in the OnPaint function and draw the image.

    Best regards.
  19. Replies
    3
    Views
    1,339

    Re: generate statistical graphics Visual C++

    Hi.

    http://www.codeproject.com/Articles/4343/Using-the-MS-Chart-control-in-VC

    http://www.codeproject.com/Articles/425/A-2D-data-visualisation-class

    You can look for more type of graphics.
    ...
  20. Replies
    2
    Views
    1,041

    Re: rand_s

    Thanks.

    This is the code:



    inline int Aleatorio(int nMin, int nMax) {
    UINT nNumero = 0;
    rand_s(&nNumero);
    UINT n_s = nMin + nNumero % (nMax + 1 - nMin);
  21. Replies
    7
    Views
    1,070

    Re: Critical section

    No, access violation as i want.

    As you suggest I change the code, now is that:



    void WINAPI fxCriticalSection(void) {
    while (TryEnterCriticalSection(&CriticalSection_Cadena) == 0) { ...
  22. Replies
    2
    Views
    1,041

    [RESOLVED] rand_s

    From MSDN: http://msdn.microsoft.com/en-us/library/sxtz2fa8(v=vs.80).aspx



    int main( void )
    {
    int i;
    unsigned int number;
    double max = 100.0;
    ...
  23. Replies
    7
    Views
    1,070

    Re: Critical section

    I created few threads. Now I create 500 threads and the program crass.

    I change the code and use the Critical Section. This is my code now:



    #define NTHREADS 500
    #define MAXCADENA 10...
  24. Replies
    7
    Views
    1,070

    [RESOLVED] Critical section

    Hi again.

    Now I'm trying to write a example of critical sections but it's not work. why?

    NOTE: main function only call Inicio function.



    #define NTHREADS 500
    #define MAXCADENA 10
  25. Replies
    2
    Views
    553

    [Solved]Re: srand

    Thanks!!
Results 1 to 25 of 518
Page 1 of 21 1 2 3 4





Click Here to Expand Forum to Full Width

Featured