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
J

JSadleir

@JSadleir
About
Posts
27
Topics
15
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Mobile Browser Web Development - Graphic Image Type & Size
    J JSadleir

    Hi All If you design a web page for viewing only with a mobile browser (say the most stone-age version around), what is the best image format to use and what is the maximum pixel size that could be used for the image eg 110x100? Any thoughts would be welcomed. Regards Jeremy

    Web Development question design discussion announcement

  • Using Binary Data Directly in CPP Source Files
    J JSadleir

    Thanks Steve - I'll give it a go - Regards Jeremy

    C / C++ / MFC c++ discussion css asp-net question

  • Screen Savers - Do they serve any purpose anymore?
    J JSadleir

    Thanks All Clearly they still perform a role. I must have been lucky with the various monitors I've had over the last ten years or so that have survived without a screen saver. Regards Jeremy

    Hardware & Devices question

  • Using Binary Data Directly in CPP Source Files
    J JSadleir

    Hi Coders If you have lots of data that you reference in an application (eg thousands of widget codes, prices and corresponding .bmp files), I gather it's possible to serialise/encode/write that data from ASCII into a binary file so that the data takes up much less space and can be accessed much more quickly by your application than if it is left in ASCII. Assuming you (1) do not want the actual data to be changed or added to after compilation by end users, but (2) you want your application to be able to quickly and efficiently reference individual items in the binary file, what do you think is the best way to include the binary file in a native Visual C++ Project? Is it possible to embed the binary file in the native Visual C++ project so that it in the application's core exe/dll without a separate external bin file? Could I do this with a cpp, lib or resource item that contains all the binary data? Any thoughts or suggestions would be much appreciated. Regards Jeremy

    C / C++ / MFC c++ discussion css asp-net question

  • Screen Savers - Do they serve any purpose anymore?
    J JSadleir

    Hi All As I understand it screen savers were developed primarily to protect early model monitors from having a stationery image etched into the screen. Was that a myth? Does anyone know whether screen savers still serve that kind of purpose in protecting today's screen displays (monitors, LCD, etc)? Regards Jeremy

    Hardware & Devices question

  • Suggestions for Code Obfuscator and/or Encrypter
    J JSadleir

    Many thanks Nick - I appreciate the insight - I've been fumbling around with separate dlls for a different reason and therefore may be able to use it in the way you describe - Regards Jeremy

    C / C++ / MFC c++ csharp java question

  • Suggestions for Code Obfuscator and/or Encrypter
    J JSadleir

    Thanks again John - I'll keep that in mind - Regards Jeremy

    C / C++ / MFC c++ csharp java question

  • Suggestions for Code Obfuscator and/or Encrypter
    J JSadleir

    Thanks John - That makes it a lot clearer - Regards Jeremy

    C / C++ / MFC c++ csharp java question

  • Suggestions for Code Obfuscator and/or Encrypter
    J JSadleir

    Many thanks for the help

    C / C++ / MFC c++ csharp java question

  • Suggestions for Code Obfuscator and/or Encrypter
    J JSadleir

    Hi Coders I'm looking for a code obfuscator and/or an encrypter for native C++ code to make decompiling and reverse engineering more difficult. There seem to be lots of obfuscator programs for Java and .Net code but I haven't found any for C++. Are they unnecessary when using pure native code? Do you know any obfuscators for native code I should look at? Regards Jeremy

    C / C++ / MFC c++ csharp java question

  • Global Variable Question
    J JSadleir

    Thanks Rich That sounds like the way to do it. I'll have a go at it. The variable may, however, revert to null once the function that performs the calculation goes out of scope. Regards Jeremy

    C / C++ / MFC c++ question

  • Global Variable Question
    J JSadleir

    Thanks Chris That's right I have two dlls that are called by one executable (Excel). I wanted to keep the variable out of Excel/VBA and just pass it between functions within both dlls. I'm very new to programming. Regards Jeremy

    C / C++ / MFC c++ question

  • Global Variable Question
    J JSadleir

    Hi Coders I have a Visual C++ 2005 solution made up of two projects with lots of source fles (containing functions only) that produce two separate dlls. In one source file I calculate a value in a variable and I want that variable to have global scope across the two projects. Is that possible? The value in the variable is needed by all the other functions in the two projects to work properly. I have tried declaring the variable in header file and before the call to dllmain but neither approach works. I can't use a macro because the I have to recalculate the value each time the dlls are used. Any suggestions would be much appreciated. Regards Jeremy

    C / C++ / MFC c++ question

  • Installing an Unsigned Add-in on a Local Computer on a Network
    J JSadleir

    Hi System Adminstrators In a networked environment, how would a network administrator handle an unsigned Excel Add-in that needs to be accessed by several individual computers on the network? Does a network administrator have the ability to create a selfcert.exe type certifcate so that the add-in can be treated as a trusted source and allowed to function on the network? Or would it be necessary to install the Add-in on the C: drives of the relevant users' computers? I hope this makes sense and isn't too vague Thanks Jeremy

    System Admin sysadmin question workspace

  • VBA - Declare - Finding the Lib File - Windows Registry?
    J JSadleir

    Many thanks Dave - That sheds much light - It's a shame that the Program Folder can't be reached as effortlessly as the Windows folder - Thanks again - JGS

    Visual Basic javascript windows-admin question discussion

  • VBA - Declare - Finding the Lib File - Windows Registry?
    J JSadleir

    Hi All I have a Microsoft Excel Add-in written in VBA. It includes a function that calls a .dll via a Declare statement along the lines of: Declare Function SOMEFUNCTION Lib "c:\Program Files\SomeFunction.dll" (ByVal SomeNo as Double) as Double Instead of including the full path to the Lib file such as "c:\Program Files\SomeFunction.dll", it is possible to register the SomeFunction.dll in the Windows Registry so that I can avoid the fiddly process of finding the path to the file so the Declare Statement becomes: Declare Function SOMEFUNCTION Lib "SomeFunction.dll" (ByVal SomeNo as Double) as Double Is that right? How do you register a .dll with Windows Registry? Is the REGEDIT.ex the only way? Is there some other way? Any suggestions or thoughts on this would be much appreciated. Thanks JS

    Visual Basic javascript windows-admin question discussion

  • Protecting Source Code
    J JSadleir

    Once VC++.Net code has been compiled, how difficult is it to convert the compild code back to the source code? Are there any simple tricks to make this more difficult? There were a couple of suggestions in earlier posts to this Message Board suggesting the use of a checksum of the preprocessed code or placing some code in #IFDEF preprocessor statements. Does anyone have simple examples of these techniques? Any thoughts would be appreciated. Regards Jeremy

    C / C++ / MFC csharp c++ question discussion

  • VC++ - Including " in a text string without ending the string
    J JSadleir

    Brilliant!! Many thanks for that!

    C / C++ / MFC question c++

  • VC++ - Including " in a text string without ending the string
    J JSadleir

    Hi All I am trying to include the inch symbol (ie " the same as a double quotation mark) in a function that requires a text string input between double quotation marks along the lines of: ? SysAllocStringByteLen("Some text with the inch symbol" and then end",44) How do I mark the " inch symbol so that it is not mistaken as the end of the text string Regards Jeremy

    C / C++ / MFC question c++

  • Passing a string from a C++ DLL to VB
    J JSadleir

    Sorry Chris - I copied out part of the code incorrectly here is what it should have been - Thanks Jeremy BSTR __stdcall SomeFunction(LPSTR cSPC) CHAR cTheString [255]; BSTR bResult; UINT iStringsLength=0; strcpy(cTheString,"Absolute Return"); iStringsLength = strlen(cTheString); bResult = SysAllocStringByteLen(cTheString,iStringsLength); return bResult; }

    C / C++ / MFC c++ help question discussion
  • Login

  • Don't have an account? Register

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