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
S

Shiva Prasad

@Shiva Prasad
About
Posts
30
Topics
23
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • VS 2002: Not taking header files from Additional Include directories
    S Shiva Prasad

    Hi, I am using VS 2002 to compile a Win32 Dll Project, and in the source code, I have referred to some include files present in various other directories, so I included them using Addtional Include directories and added them. In the Command Line link of the project setting, it displays the added link. These paths are relative to the path of the current .vcproj file. when i compile, it gives error, fatal error C1083: Cannot open include file: What could be the cause of this issue.. Kindly help.. Thanks,

    C / C++ / MFC help visual-studio

  • WriteFile returns Success(Nonzero Value) NumberofBytesWritten is 0
    S Shiva Prasad

    Hi, I am running a WinCE6.0 Stream interface Driver on a DTE device which will open a handle to Serial port which is connected to a modem.WriteFile API returns non-zero Value, but NumberofbytesWritten parameters is coming as Zero. The Windows CE 6.0 device is a DTE terminal and when connected to PC (Another DTE)) over NULL Modem cable with hyperterminal, all the data from the are seen on the hyperterminal, and WriteFile API fills the NumberofbytesWritten is exactly the same as the bytestoWrite. When the CE6.0 DTE device is connected to DCE Modemdevice using a Straight serial cable, WriteFile API is succedding by returning Non-Zero Value, but NumberofbytesWritten parameters is coming as Zero. The following is the DCB in the driver: dcb.BaudRate = m_BaudRate;(115200) dcb.fBinary = TRUE; dcb.fParity = TRUE; dcb.fOutxCtsFlow = TRUE; dcb.fOutxDsrFlow = FALSE; dcb.fDtrControl = DTR_CONTROL_ENABLE; dcb.fDsrSensitivity = FALSE; dcb.fTXContinueOnXoff = TRUE; dcb.fOutX = FALSE; dcb.fInX = FALSE; dcb.fErrorChar = FALSE; dcb.fNull = FALSE; dcb.fRtsControl = RTS_CONTROL_HANDSHAKE; dcb.fAbortOnError = FALSE; dcb.ByteSize = 8; dcb.Parity = NOPARITY; dcb.StopBits = ONESTOPBIT; Also, I am setting EscapeCommFunction(m_hCOMHandle,SETDTR); On the hyperteminal I have the following setting: baudrate = 115200 Data bit = 8 Parity=None StopBit=1 FlowControl=None Also, with the same hyperterminal setting with PC(Hyperterminal) connected to Modem over Straight SErial cable, I am able to fire the AT Commands from the PC(hyperterminal) to the modem. Also CommTimeout, I have set the following: CT.ReadIntervalTimeout = MAXDWORD; CT.ReadTotalTimeoutMultiplier = 0; CT.ReadTotalTimeoutConstant = 0; CT.WriteTotalTimeoutMultiplier = 0; CT.WriteTotalTimeoutConstant = 100; -Can a timeout issue cause WriteFile Still succeed and Numberof Bytes Written as zero? - In hyperterminal Flow Control None, what are the Flow control affected in the DCB? Can somebody give me some hints on the same. Thanks..

    Mobile json help question

  • WriteFile returns non-zero(Success) NumberBytesWritten is 0
    S Shiva Prasad

    Hi, I am running a WinCE6.0 Stream interface Driver on a DTE device which will open a handle to Serial port which is connected to a modem.WriteFile API returns non-zero Value, but NumberofbytesWritten parameters is coming as Zero. The Windows CE 6.0 device is a DTE terminal and when connected to PC (Another DTE)) over NULL Modem cable with hyperterminal, all the data from the are seen on the hyperterminal, and WriteFile API fills the NumberofbytesWritten is exactly the same as the bytestoWrite. When the CE6.0 DTE device is connected to DCE Modemdevice using a Straight serial cable, WriteFile API is succedding by returning Non-Zero Value, but NumberofbytesWritten parameters is coming as Zero. The following is the DCB in the driver: dcb.BaudRate = m_BaudRate;(115200) dcb.fBinary = TRUE; dcb.fParity = TRUE; dcb.fOutxCtsFlow = TRUE; dcb.fOutxDsrFlow = FALSE; dcb.fDtrControl = DTR_CONTROL_ENABLE; dcb.fDsrSensitivity = FALSE; dcb.fTXContinueOnXoff = TRUE; dcb.fOutX = FALSE; dcb.fInX = FALSE; dcb.fErrorChar = FALSE; dcb.fNull = FALSE; dcb.fRtsControl = RTS_CONTROL_HANDSHAKE; dcb.fAbortOnError = FALSE; dcb.ByteSize = 8; dcb.Parity = NOPARITY; dcb.StopBits = ONESTOPBIT; Also, I am setting EscapeCommFunction(m_hCOMHandle,SETDTR); On the hyperteminal I have the following setting: baudrate = 115200 Data bit = 8 Parity=None StopBit=1 FlowControl=None Also, with the same hyperterminal setting with PC(Hyperterminal) connected to Modem over Straight SErial cable, I am able to fire the AT Commands from the PC(hyperterminal) to the modem. Also CommTimeout, I have set the following: CT.ReadIntervalTimeout = MAXDWORD; CT.ReadTotalTimeoutMultiplier = 0; CT.ReadTotalTimeoutConstant = 0; CT.WriteTotalTimeoutMultiplier = 0; CT.WriteTotalTimeoutConstant = 100; -Can a timeout issue cause WriteFile Still succeed and Numberof Bytes Written as zero? - In hyperterminal Flow Control None, what are the Flow control affected in the DCB? Can somebody give me some hints on the same. Thanks..

    C / C++ / MFC json help question

  • Select Data Source pops up
    S Shiva Prasad

    Hi, I am new to DB programming. I get a dialog during the execution of programming when using Database "Select Data Source" dialog. I had already created a CDatabase object and initialized the DSN name, user name password in the OpenEx() call of it. When I try to use the CRecordSet object to access the database, this dialog box pop up. I cross checked the ODBC DSN name and it is set right. why this dialog box pops up in between.. Can someone help me out on this. thanks,

    C / C++ / MFC database help

  • Crash analysis
    S Shiva Prasad

    Hi, I have an application which uses a static library and a load time DLL for which the .lib is required to be added in the project settings. when the application, both .lib file in VC6 works fine when the application in VC8, static lib in VC8, dll's .lib file in VC6 works fine. when the application in VC8, static lib in VC8, dll's .lib file in VC8,the application crashes. Dr.watson is enabled and the Crash dialog shows module name as unknown, version no. 0.0.0.0. The dump.log file also doesn't specify which module the crash is happening. FAULT --> shows to a section which doesn't specify the module name. The dll is having a version number. but the crash doesn't show the dll. Can anybody throw some light where could be the problem. Thanks,

    C / C++ / MFC help announcement

  • atl8.0 backward compatibility issue
    S Shiva Prasad

    We have built a com based application in VC5, VC6 in debug mode & works fine. when migrated to VC++ 8.0, com register class is failing. VC6 binary is built which atl6.0.dll and works fine. but when the application is built with atl8.0 com register class is failing. We are using CComModule class in atl6.0. But it looks like the same class is change to CAtlComModule in atl8.0 Is there any option which will enable backward comptible in atl8.0?

    C / C++ / MFC c++ com debugging help question

  • atl8.0 backward compatibility issue
    S Shiva Prasad

    We have built a com based application in VC5, VC6 in debug mode & works fine. when migrated to VC++ 8.0, com register class is failing. VC6 binary is built which atl6.0.dll and works fine. but when the application is built with atl8.0 com register class is failing. We are using CComModule class in atl6.0. But it looks like the same class is change to CAtlComModule in atl8.0 Is there any option which will enable backward comptible in atl8.0? Thanks

    ATL / WTL / STL c++ com debugging help question

  • Retriving fields value of UI application
    S Shiva Prasad

    Thanks alok for the idea.. >>The FindWindow function retrieves a handle to the top-level window whose >>class name and window name match the specified strings what can i do to know the class name & window name... >>WM_GETTEXT message to copy the text that corresponds to a window into a buffer provided by the caller. if a window has many text edit box, will it copy all the text corresponding to the windows fields?? can you please clarify.

    C / C++ / MFC design tutorial

  • Retriving fields value of UI application
    S Shiva Prasad

    Hi, I have an GUI based windows application which has text box, edit box fields whose values gets updated from time to time. I Need to get the field values of this GUI application using another application and store them in a file on a periodic basis. BTW,I don't have the source code of the GUI application. Can it be done using windows messaging or suggest me a way how to go about doing this.. Thanks,

    C / C++ / MFC design tutorial

  • Query regarding Installshield
    S Shiva Prasad

    I am planning to have installshield for VC++ 6.0 which comes along with VC++ 6.0 to install some of the binaries. All these day, I had been using Installation batch file to create directories,and copying the respective file into the directories and manully making registry entries using .reg file. I would like to know, is it OK to use Installshiled which comes with VC++ 6.0 or to use the latest Installshield product itself. What way using the Latest Installshield product is beneficial compared to the version of the Installshield comes along with VC++ 6.0 Is it possible to make use custom action dll & coinstaller in Installshield with VC++ 6.0?? Thanks

    C / C++ / MFC

  • Winsock port monitor
    S Shiva Prasad

    Hi, I am looking for a free tool to run on Windows XP which can sniff & parse the packets captured on a particular windows Socket. the tool I look for not to use the Mac to capture packets. I need to capture & parse the packets transferred between 2 process over the windows socket on the same machine, ie, without splitting them over 2 machines on LAN. I am aware of ethereal but it captures over the mac layer. Windump doesn't parse & display the packets only shows the traffic info Kindly suggest any other free tool Thanks,

    C / C++ / MFC

  • Delay of 250micro Sec
    S Shiva Prasad

    hi, I need to create a delay in step of 250 micro sec..But GetTickCount API counts the tick in terms of milli seconds. Is there any other method to achieve the same using inline assembly, but only issue is it shouldn't be processor specific/dependent... can someone post a snippet for the same.. thanx..

    C / C++ / MFC json help

  • max number of threads/Win32 process
    S Shiva Prasad

    hi, Is there any limitation on maximum number of threads a win32 process can spawn..?? Thanks,

    C / C++ / MFC question

  • Stack Trace..
    S Shiva Prasad

    I am using windbg for stack trace a crash in my program. Kb command gives only this stack trace.. ChildEBP RetAddr Args to Child 0012fd60 00000000 77c5aca0 00000000 0012fdb0 MyProg!_output+0x18 I don't see any other callstack and RetAddr.. Can anyone let me know how can I get more info about the cause of the stack..

    C / C++ / MFC data-structures debugging question

  • nmake to build dll
    S Shiva Prasad

    hi, can somebody let me know what is the nmake syntax & option to be given to build a dll.. Is there any changes to be done in .mak file for converting a win32 application's nmake to build a dll... Thanks,

    C / C++ / MFC question

  • print preview for xps document
    S Shiva Prasad

    hi all, I am using DocumentViewer Class which exports print method only..I need to have a print preview option too in the winfx application. What's the right way to do this ? I am using vc# 2005 I also need suggestion for the following method In the Handler for print preview menu, I have a private void OnPrintPreview( ) { System.Windows.Forms.PrintPreviewDialog prev = new System.Windows.Forms.PrintPreviewDialog(); prev.document = //Here, How can I get the PrintDocument from DocumentViewer prev.ShowDialog() } DocumentViewer's document member variable is of type IDocumentPaginitorSource. Pls let me know how to get System.Drawing.Printing.PrintDocument type from IDocumentpaginitor. Thanks,

    C# question csharp graphics tutorial

  • Synchronisation objects. - When to use what
    S Shiva Prasad

    Thanks Anyway.. But this discusses what each synch object is.. I am looking for info on distinguistion between each and other object with respect to a sample situation.. Let me know if you have more info on this.. Thanks,

    C / C++ / MFC architecture discussion

  • Synchronisation objects. - When to use what
    S Shiva Prasad

    Hi all, I have used some of the synch objects in my code. At times I tried using more that one for same purpose, and both works fine.. Many books, docs explain about the synch objects..But I couldn't find about the analysis of When to use what kind of sych objects in detail.. Can someone who has a solid understanding on this can share their thoughts on this..or can give some pointers on When to use what synch objects.. Thanks,

    C / C++ / MFC architecture discussion

  • MSXML6.lib error on Debug build
    S Shiva Prasad

    Hi, compiler: VC++ 6.0 problem: When a Release Build is done, it works fine.. We are using MSXML 6.0 in our code. But during Debug Build of a win32 module, it gives the following error. msxml6.lib(msxml6_i.obj) : fatal error LNK1103: debugging information corrupt; recompile module Error executing link.exe. One possible reason we could think of is the msxml6.lib is of release build. so it builds on release mode and gives the error on debug build We need a Debug build since we need to debug the code, can anybody suggest any work around in the compiler setting.. I tried out the following try out the following, but no use: Turn off optimization with the /Od (Disable) option. Disable minimal rebuild with the /Gm– (Enable Minimal Rebuild) option. Compile with the /Gy (Enable Function-Level Linking) option to package functions. Use a different code generation option. See the /G (Optimize for Processor) options. Change the order of functions and global variables. I get the same error when I enable the Debug option of compiler in Release Mode. Any suggestion or workaround is highly appreciated. Thanks, Shiva

    C / C++ / MFC help c++ ai-coding algorithms debugging

  • Headache
    S Shiva Prasad

    Off late, I keep getting headache early in the morning itself. Feels like having kept a tonne of load on my head. This gets worse if I start thinking of anything.. I don't know if it is migraine or any other kind of headache. Did Any body had this, tried any holistic treatment to this.. Kindly suggest.. thanks,

    The Lounge
  • Login

  • Don't have an account? Register

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