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
R

RockNix

@RockNix
About
Posts
55
Topics
14
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Link problem (using avifile)
    R RockNix

    Within Visual Studio 6.0 there is a tool called "DUMPBIN". Copy this to your DLL Path and type the following line from a console: dumpbin /exports yours.dll A list of the exported functions should be shown. So far ... RockNix/// ------------------------------------ www.klangwerker.de Need some articles about Threading, Subclassing, Double Buffering ? Go for it ... Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder Visit us on www.klangwerker.de ------------------------------------

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

  • Am i defining this struct wrong?
    R RockNix

    Delete the struct name in the first line : typedef struct { . . So far ... RockNix/// ------------------------------------ www.klangwerker.de Need some articles about Threading, Subclassing, Double Buffering ? Go for it ... Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder Visit us on www.klangwerker.de ------------------------------------

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

  • Link problem (using avifile)
    R RockNix

    There are two ways to use a DLL: 1) static use You need a header-file and a lib-file added to your project. Than you can directly call the functions declared in the header file. (Due to the linker errors it seems the lib-file is missing in your project, adding only the dll won`t work) 2) dynamic use You only need the dll-file. From your source you load the dll by calling LoadLibrary() and get the function pointers by calling GetProcAdress(). So far ... RockNix/// ------------------------------------ www.klangwerker.de Need some articles about Threading, Subclassing, Double Buffering ? Go for it ... Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder Visit us on www.klangwerker.de ------------------------------------

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

  • GetOverlapedresult
    R RockNix

    You have to do the following steps: 1) CreateFile() with FILE_FLAG_OVERLAPPED 2) Create 2 Events by using CreateEvent() 3) Create 2 OVERLAPPED STRUCT and put events (2) in here 4) now use WaitCommEvent(), ReadFile(), WriteFile() with STRUCTS (3) as calling-parameters That`s it ... So far ... RockNix/// ------------------------------------ www.klangwerker.de Need some articles about Threading, Subclassing, Double Buffering ? Go for it ... Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder Visit us on www.klangwerker.de ------------------------------------

    C / C++ / MFC com tutorial

  • process info
    R RockNix

    Use the ToolHelp functions for example See CreateToolhelp32Snapshot(), Process32First(), Process32Next() So far ... RockNix/// --------------------------------- www.klangwerker.de Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder ---------------------------------

    C / C++ / MFC c++

  • FTP connection problems like 12003, what's this?!
    R RockNix

    To be found in WININET.H delivered with MS VC++ 6.0 // // Internet API error returns // #define INTERNET_ERROR_BASE 12000 #define ERROR_INTERNET_OUT_OF_HANDLES (INTERNET_ERROR_BASE + 1) #define ERROR_INTERNET_TIMEOUT (INTERNET_ERROR_BASE + 2) #define ERROR_INTERNET_EXTENDED_ERROR (INTERNET_ERROR_BASE + 3) . . . . So far ... RockNix/// --------------------------------- www.klangwerker.de Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder ---------------------------------

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

  • Monitor serial port activity
    R RockNix

    Hmmm, I would propose to write a kind of driver which grabs the data flow between the application and the rs232-driver. There are many ways to do that. If you are not really in writing win32 drivers try api-hooking. That means you have to do a kind of overwriting functions used to handle the serial port like CreateFile(), ReadFile(), WriteFile() and so on. If you did the application doesn`t really call the functions from user32.dll or whatever but yours, keep the data and then call the original functions from system dlls and no one will worry. Take a look at "Programming Applications for MS Windows" by Jeffrey Richter - you will find some chapters about api-hooking, dll injecting and things like that. So far ... CU Mario /// --------------------------------- www.klangwerker.de Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder ---------------------------------

    C / C++ / MFC help question

  • debugging service
    R RockNix

    can anyone give some advice how to debug a service running on win2k. i tried this thing adding a debugger value to the registry key "Image File Execution Option" but i didn`t get it to run in the debugger at all. What is the value I have to add to this key if I want to use the VC++ Debugger ? CU Mario /// --------------------------------- www.klangwerker.de Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder ---------------------------------

    C / C++ / MFC debugging question c++ delphi windows-admin

  • Avoid flickering...
    R RockNix

    try double-buffering www.klangwerker.de/developer/english/double_buf.htm (Didn`t I see this post on www.codeguru.com ) CU Mario /// --------------------------------- www.klangwerker.de Look out for free Win32 Serial Communication Module for VC++ or Borland C++ Builder ---------------------------------

    C / C++ / MFC graphics help question

  • First articles ready ...
    R RockNix

    Hi, we are building up a collection of articles. A few of them are ready. I hope our collection of tips and tricks will grow up in the next time. Take a look at it ... http://www.klangwerker.de/developer/ CU Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC

  • Debugging Problem with CHAR
    R RockNix

    Hi, I have problems filling up a structure while debugging. The Strucutre is something like this: typedef struct { char; // (8Bit) unsigned int; // (32Bit) somepointer*; // (32Bit) } what makes 9 Byte together. I want to fill up the struct with a byte-pointer pointing to a stream. That works but the problem is that in debugging mode CHAR seems to be 32Bit long, because when I fill up the struct byte by byte the first byte is placed into the CHAR but it needs 3 more bytes to get to the UNSIGNED INT. Any ideas ? Thanks! CU Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC help question

  • Realtime sound mixing
    R RockNix

    Hi, have you tried using more but shorter buffers ? Ok this will cause a higher use of the write functions - but shorter buffers have of course shorter delay in change. But wait - You are using 1024 Sample Buffers ? I guess for a game you are using 44,1k/16bit/mono ? That means the total play-time of the buffer is about 23ms. Therefor a change needs at least this time to appear. On the other side this time can only appear as a short chorusing effect because the time is to short for human hearing to notify 2 seperate sounds. I think you should not notify a delay. Maybe you have a great preformance loss in your wave-mixer ? You should check it out. To raise up speed you should not use the wave-event (don`t know if you did). Better use the WaveOutProc-CALLBACK. Then you should put the output routine in a seperate thread. Hope it helps Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC game-dev graphics help tutorial question

  • Only One Instance to be opened...
    R RockNix

    >>I think Lauren is trying to say that if your app AbEnds, and leaves the >>Mutex active, other instances of your application will not be able to >>launch, as they will see that the Mutex is active, and will not come up. Yes in fact you`re right. That´s a point I haven`t thought about. The question is what will happen with a mutex-object which owner is no longer running ? Is it still reserved or is it free to get ? That`s worth a try I think. Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC c++ question

  • Only One Instance to be opened...
    R RockNix

    Hi, first of all the function CreateMutex() returns a handle to an object when creation succeeds. On the other side the mutex-object will be created by the process which started first. Calling CreateMutex with same "Name" again won`t succeeds because it already exists so the worst case is to have 1 object at the same time and no more. Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC c++ question

  • Windows Driver Development
    R RockNix

    Hi Mick, thank you very much for giving advice. I think now I know how to start-up dealing with driver-development and learning the basics. Mario /// P.S.: In fact - I`m from Germany and now I also know how to decode the english abbreviations :-) Greatings Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC

  • Only One Instance to be opened...
    R RockNix

    Hi, here is a another way to check out if your application is already running. I used this in my API-code but it should also run in MFC. First create a mutex-object on startup. -> CreateMutex(NULL,true,"SomeName"); Than ask about last-error -> if( GetLastError()==ERROR_ALREADY_EXISTS) { // do exit stuff } Hope it helps Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC c++ question

  • Windows Driver Development
    R RockNix

    Hi Mick, let me try to answer the questions clearly: Q>> Do you want to detect when the device is plugged in or removed? >>(This implies some way of enabling Plug-and-Play for the serial port). >>I think this would be nice to have, but not necessary to get the driver >>working. This is not necessary. I don`t see any advantage at the moment if we do so. But wait ... what about possible handshaking between hardware and ser-port. Could this cause a deadlock ? Maybe an app is sending midi-msg through the ser-device and the device waits for a handshake ? I`m not sure ... Yes, I think we should keep the idea. We have several CPU`s in our hardware and it would not be to difficult to make them send an id-string back to the driver on request >>Q> Do you need a MIDI application to 'see' the hardware on the serial port >>as a MIDI device? Let me say some words about Cubase ( midi-sequencer-app ). Here you have for example 16 seperate tracks for midi-commands. For every track you can choose a different midi-out device if you have more than 1 device installed. So finally our driver should appear in this list, get the midi-commands from the track and send it via RS232. >>(If yes, then it sounds like you want to write a 'layered' driver which >>sits between the MIDI device drivers and the serial port, rerouting MIDI >>commands to the serial port) That`s it ! Thanks a lot ... Mario /// P.S.: A LITTLE ENGLISH LESSON: I often read the "IMHO" - What does this mean ? ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC

  • Windows Driver Development
    R RockNix

    >It sounds like you actually want your driver to appear as some kind of >generic midi device and internally route midi commands via the serial port? >(Or am I barking up the wrong tree?) Hi Mick, you are absolutly right. That`s the way it should go. The serial communication is no problem to me. My test-app I wrote for the hardware uses the serial port to configure and test the hardware and it works well. The point is how to re-route the midi-stream from a midi-application. I know that must be possible. There is a tool out called TotalRecorder. This tool does the same I want but with audio-streams. It receives a wave-stream from another app, can write it to a file and send it THROUGH to the wave-device and it also appears as a kind of device-driver in the list. But I see I have to read and learn a lot again before starting. Ok, once again back to the books - Do I need different books for 98 and 2K to learn the basics or are there only special things that are different so I can use one book to learn the basics of the driver models of both OS ? Thanks Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC

  • Windows Driver Development
    R RockNix

    Ok, I want to write the driver in the first way for win98 and maybe later for 2000. I can`t say anything about the mode you asked for. I have many experience with Win32-API but this driver stuff is totally new to me, so at first I have to learn the basics about the model. Let me explain what we are trying to do, so maybe you can give some advice where to start. Actually we are developing a midi-interface ( 19" - outside the pc ) which we want to configure and use via a pc. The configuration and midi-data transmission should go via rs232. So if someone uses a sequencer-soft like Cubase or whatever our external midi-device should have an entry in the output-device list and the app should sent the midi-data through the internal RS232 to our device. I have heard about a book called PROGRAMMING THE WINDOWS DRIVER MODELL from MS-PRESS. Do you know this book ? Greatings Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC

  • Windows Driver Development
    R RockNix

    Hi, anybody here who made experience in driver-development or knows good books, good links about the driver-model ... Thanks ... Mario /// ---------------------- www.klangwerker.de mario@klangwerker.de ----------------------

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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