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
T

Thong LeTrung

@Thong LeTrung
About
Posts
22
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • [Bug][java.sql.DriverManager.getConnection(Unknown Source)]
    T Thong LeTrung

    Hi Everybody, I installed mysql on Fedora 20 and I can access to mysql with java on eclip however I would like to access mysql from other machine and I have used Windows 8 to access to mysql on fedora I tried to configure on fedora (virtual machine) : Edit my.cnf File. But I can not access to mysql please see following photos There is a photo on fedora

    Fedora

    There is error on Windows OS

    Windows 8

    Thanks Thong LT

    Database mysql help java database com

  • [build c++ by command line on windows OS][visual studio 2008]
    T Thong LeTrung

    i have main.cpp ,makefile , build.bat //----------main.cpp---------------------------- #include int main() { std::cout << "hello world." << std::endl; return 0; } //--------------makefile------------------------- foo: main.cpp CL main.cpp //-------------build.bat-------------------------- @echoOFF echo buid by commnand line nmake echo ============================= echo run main.exe echo ============================= main.exe i use "Visual Studio command prompt " to run build.bat file . + with visual studio 2010 : ok + with visual studio 2008 : error please help me how to fix on visual 2008 . Thanks Thong LT ============================visual studio 2010================ C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>cd c:\Users\ttle\Desktop\ demo c:\Users\ttle\Desktop\demo>build.bat buid by commnand line Microsoft (R) Program Maintenance Utility Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. CL main.cpp Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. main.cpp c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xlocale(323) : wa rning C4530: C++ exception handler used, but unwind semantics are not enabled. S pecify /EHsc Microsoft (R) Incremental Linker Version 10.00.40219.01 Copyright (C) Microsoft Corporation. All rights reserved. /out:main.exe main.obj ============================= run main.exe ============================= hello world. //====================Visual studio 2008 ---------------- Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. main.cpp C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : war ning C4530: C++ exception handler used, but unwind semantics are not enabled. Sp ecify /EHsc Microsoft (R) Incremental Linker Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved. /out:main.exe main.obj LINK : fatal error LNK1104: cannot open file 'kernel32.lib' NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 9.0\ VC\BIN\CL.EXE"' : return code '0x2' Stop. ============================= run main.exe ============================= 'main.exe' is not recognized as an internal or external command, operable program or batch file.

    C / C++ / MFC help c++ csharp sharepoint visual-studio

  • how to fix the error of the set and get function in my program?
    T Thong LeTrung

    you should add on .h file : "use std::string " or class Record { public: void setPersonName(string); std::string getPersonName(); void setEmail(string); std::string getEmail(); void setTelephoneNumber(int); int getTelephoneNumber(); private: std::string personName; std::string email; int telephoneNumber; }

    C / C++ / MFC help csharp c++ visual-studio tutorial

  • [Two projects use one file on visual studio 2008] [C++]
    T Thong LeTrung

    Thanks all friends . My code now run well . I have some error and how to fix . + fatal error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d] Configuration Properties\Gerenal\Use of MFC and select "Use MFC in a Shared DLL" + error LNK2001: unresolved external Configuration Properties\Linker\input\Additional dependencies\ Then go to the end and type ";ws2_32.lib". or use code: #include #pragma comment(lib,"shlwapi.lib") #include // Link with Iphlpapi.lib #pragma comment(lib, "IPHLPAPI.lib") Thong LT

    C / C++ / MFC help c++ csharp visual-studio tutorial

  • [Two projects use one file on visual studio 2008] [C++]
    T Thong LeTrung

    Thank Maximilien, I didn't add this file . I will add this file. How to have any ways ? . if we don't add WinUtils.cpp and WinUtils.h inside new project. I know will dll , lib files we only use configure but we don't need add h and cpp file inside new project. Thanks Thong LT

    C / C++ / MFC help c++ csharp visual-studio tutorial

  • [Two projects use one file on visual studio 2008] [C++]
    T Thong LeTrung

    Hi all . step 1: create new project on visual studio (project1.exe) step 2: create WinUtils.h and WinUtils.cpp on project1.exe and main1.cpp step 3 : add new project (project2.exe) and create main2.cpp Now I want to use WinUtils.h and WinUtils.cpp on project2.exe example //-----------------main2.cpp-------------------- #include "../utils/WinUtils.h" int main() { bool value = WinUtils::isWin64bit();/ function static return 0 ; } //-------------------------------------------- when i build code ,I saw error: + error LNK2001: unresolved external symbol "public: static int __cdecl WinUtils::Is64BitOS(void)" (?Is64BitOS@WinUtils@@SAHXZ) + fatal error LNK1120: 1 unresolved externals I make sure that isWin64bit() function is "public static" Please help me this problem .because my code has very much h and cpp files. Thanks Thong LT

    C / C++ / MFC help c++ csharp visual-studio tutorial

  • Compiler On Linux
    T Thong LeTrung

    Thank Albert and Richard . I am now reading "advanced-linux-programming" book and compile by gcc . Thanks Thong LT .

    C / C++ / MFC csharp visual-studio linux help

  • Compiler On Linux
    T Thong LeTrung

    Hi ,all , I am now using Visual studio to build code on Windows OS . I am going to learn C on Fedora and write a small project about hooking file system but I don't know that compiler is good on Linux ( To inject dll file ). and I want to run code on other machines . I installed codeblocks but i don't make sure codebloks will help me . please help me . Thanks Thong LT

    C / C++ / MFC csharp visual-studio linux help

  • What software are you using for learning programing ?
    T Thong LeTrung

    you can use codeblocks ,there is free of charge . http://www.codeblocks.org/downloads[^]

    C / C++ / MFC c++ question learning

  • Can create session inside services ?
    T Thong LeTrung

    Hi Richard , I am writing code to hook process but when Process run in service i can not hook anything. I think I need to create service.exe in the same explorer.exe ,and then i will hook process which is running inside service by change createServices ,startService(), change path,etc . please see attached link. https://6u7mzg.dm1.livefilestore.com/y2ptrnPlJJujhKAudu3oz8U_ObqnYpSbaZgyoDmKZCKuglr8Zg3wu_HTk7jhUSmbw-jLmNb3d1PIaZeSqWEYQ3bw0aYYeW6arUGG59c57r9f1E/processExplorer.png?psid=1[^] Thanks Thong LT

    C / C++ / MFC question

  • Can create session inside services ?
    T Thong LeTrung

    Hi ,all, when PC starts up , smss.exe will create new session -service session (wininit.exe...) -User session (winlogon.exe ...) Now i want to create a new session inside MyService.exe . Can you share with me document or ebook ? wininit.exe ---------services.exe -------------svchost.exe -------------MyService.exe explorer.exe ------- chrome.exe wininit.exe ---------services.exe -------------svchost.exe -------------MyService.exe ----------------wininit.exe -------------------services.exe ------------------- -svchost.exe explorer.exe ------- chrome.exe Thanks Thong LT

    C / C++ / MFC question

  • How to Create Single Process in C++
    T Thong LeTrung

    Thank you a lot Thong LT

    C / C++ / MFC csharp c++ visual-studio tutorial question

  • How to Create Single Process in C++
    T Thong LeTrung

    Hi All, when I build visual studio to create exe file .Then I run exe file ,It will have a process . and I continue to run exe file again . Therefore i will have two process for exe file . How to Create Single Process in C++ ? I think we can check process currently if process exist we exit new process. I try to use singleton but i can not create single process. Do you have any way ? Thanks Thong LT

    C / C++ / MFC csharp c++ visual-studio tutorial question

  • How To Save Data for Microsoft Word 2007 or 2010 on Windows OS
    T Thong LeTrung

    Hi, Erudite , I graduated about one year so I don't have much experience about Win kernel .Thank you for helping me Thong Le Trung

    C / C++ / MFC question performance

  • How To Save Data for Microsoft Word 2007 or 2010 on Windows OS
    T Thong LeTrung

    Function NtCreateFile will call to change the name when we choose "save as" . Do I wonder content new file will have from ? . I think after create new file, it will read File from old file and then it will write data to new file.

    C / C++ / MFC question performance

  • error -1.#IND00 in vc++2010
    T Thong LeTrung

    I am sorry , I see error for you . I have a example , i hope this example will help you. What will be output of the following program?

    #include
    int main(){
    float a=0.7;d
    if(a<0.7){
    printf("C");
    }
    else{
    printf("C++");
    }
    return 0;
    }

    EXPLANATION Output: Turbo C++ 3.0: c Turbo C ++4.5: c Linux GCC: c Visual C++: c Explanation: 0.7 is double constant (Default). Its binary value is written in 64 bit. Binary value of 0.7 = (0.1011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011 ) Now here variable a is a floating point variable while 0.7 is double constant. So variable a will contain only 32 bit value i.e. a = 0.1011 0011 0011 0011 0011 0011 0011 0011 while 0.7 = 0.1011 0011 0011 0011 0011 0011 0011 0011 0011 0011 0011.... It is obvious a < 0.7

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

  • error -1.#IND00 in vc++2010
    T Thong LeTrung

    I have checked on visual studio 2010 , you can check again

    #include
    #include
    using namespace std;

    long double Harmonique(long double *t,int l)
    {
    long double s=0.0;
    for(int i=0; i

    3.19262
    Press any key to continue . . .

    Thanks
    Thong Le Trung

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

  • error -1.#IND00 in vc++2010
    T Thong LeTrung

    I think you should check address of pointer and length of array

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

  • How To Save Data for Microsoft Word 2007 or 2010 on Windows OS
    T Thong LeTrung

    Hi,Erudite_Eric, Before I write data , I will hook NtWriteFile function and encrypt content file . Before I read data , I will hook NtReadFile function and decrypt content file to display file My code work well with "Notepad" , but crash with "Microsoft Word" when I choose "save as" I have checked .pdf file , .pdf file still works well . Thank you for your time. Thong Le Trung.

    C / C++ / MFC question performance

  • How To Save Data for Microsoft Word 2007 or 2010 on Windows OS
    T Thong LeTrung

    Hi ,all, When I open a .txt file .I think Notepad will call NtReadFile function . If I modify content .txt file and then I save txt file . I think Notepad will call Notepad will call NtWriteFile function . My question : When I open .txt file ,and next I choose "save as" . How many functions does Notepad call to be "save as" ? Will Data store on buffer or hard disc before we choose "save as "? How many functions does "Microsoft Word" call when we choose "save as" ? I think in the case "Microsoft Word" will use memory mapped file to be " save as" Thanks Thong Le Trung

    C / C++ / MFC question performance
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups