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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
P

paul9038

@paul9038
About
Posts
4
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CopyFile method and String conversions
    P paul9038

    The following code is from a Visual C++ app to copy a file from one directory to another. It has been simplified, so I can get it working, from the objective where button and textbox controls will populate the String^ variables. I think its pretty clear what the code is trying to do, however I can't get it to work. I would appreciate any help in fixing it, any suggestions of a better approach if this one seems wrong or even some code/advice on how to trap and read any errorcodes that the CopyFile function is trowing instead of the simple messagebox I'm using. Thanks in advance, String^ source = "C:\Temp\Firefox.pcv"; String^ dest = "E:\Test\Firefox.pcv"; char* file1 = (char*)(Marshal::StringToHGlobalAnsi(source + "\0")).ToPointer(); char* file2 = (char*)(Marshal::StringToHGlobalAnsi(dest + "\0")).ToPointer(); if(CopyFile((LPCTSTR)file1, (LPCTSTR)file2, TRUE) == 0){ MessageBox::Show("ERROR"); }else{ MessageBox::Show("OKAY"); } Marshal::FreeHGlobal(IntPtr((void*)file1)); Marshal::FreeHGlobal(IntPtr((void*)file2));

    Managed C++/CLI c++ help tutorial

  • Threading Advice/Solutions
    P paul9038

    Hi, Just looking for some advice as I think my current working solution is probably wrong. I've written a small video player in C# using ffmpeg as the decoder and a thread to process and display the footage. However, as I try and further the player's development the thread idea seems more difficult to control. My main window initialises the video footage but plays its output in a seperate thread to a seperate window. To pause the video I suspend and resume the thread, this works fine. To stop the video I abort the thread and kill the seperate window, I can then initialise another video and then play it fine. If, however the video plays to the end I can't restart the player as the previous thread doesn't seem to have terminated properly. Is it possible to control threads where they can be stopped and restarted. Thanks in advance.

    C# csharp career

  • Beginners question on building Bento4 SDK
    P paul9038

    If possible would anyone have time to explain how the following file contents can be used on a windows XP platform to build the BENTO4 SDK for mpeg4 programming. Only new to this and on a high learning curve so any help appreciated. Am trying to convert it to a bat file but am having no success. I also have VS2005 available but can't work out if this file can be used in that environment. make-sdk.sh file contents: AP4_ROOT=../../.. SOURCE_ROOT=$AP4_ROOT/Source BUILD_TARGET_DIR=$AP4_ROOT/Build/Targets/x86-microsoft-win32-vs2005 CP="cp" MKDIR="mkdir -p" for config in Debug Release do SDK_DIR=$config/SDK $MKDIR $SDK_DIR $MKDIR $SDK_DIR/include $MKDIR $SDK_DIR/bin $MKDIR $SDK_DIR/lib $CP $SOURCE_ROOT/Config/*.h $SDK_DIR/include $CP $SOURCE_ROOT/Core/*.h $SDK_DIR/include $CP $SOURCE_ROOT/Codecs/*.h $SDK_DIR/include $CP $SOURCE_ROOT/Crypto/*.h $SDK_DIR/include $CP $SOURCE_ROOT/MetaData/*.h $SDK_DIR/include $CP $BUILD_TARGET_DIR/AP4/$config/AP4.lib $SDK_DIR/lib $CP $BUILD_TARGET_DIR/*/$config/*.exe $SDK_DIR/bin done

    C / C++ / MFC asp-net cryptography debugging help question

  • High Definition Video Starting Point
    P paul9038

    Wondering if anyone can point me in the right direction, as a starting point, in building a frame accurate High Definition Video player i.e. must be able to control the HDV at the frame level. Have been spending time looking into various SDK's like WMV HD, DirectShow and DirextX with no clear concensus on the correct direction. Any pointers would be apprciated. Thanks

    C#
  • Login

  • Don't have an account? Register

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