Jump to content

Help please

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Slider

Slider

    Learning Programmer

  • Members
  • PipPipPip
  • 33 posts
I can't figure out how to convert the "Hardcoded insert string for the event messages."

Could someone help me?

Thanks.

// Example shows how to use the ReportEvent function to write the events defined
// in the above message text file.
#define UNICODE
#include <windows.h>
#include <stdio.h>
#include "provider.h"

#pragma comment(lib, "advapi32.lib")

#define PROVIDER_NAME L"MyEventProvider"

// Hardcoded insert string for the event messages.
CONST LPWSTR pBadCommand = L"The command that was not valid";
CONST LPWSTR pFilename = L"c:\\folder\\file.ext";
CONST LPWSTR pNumberOfRetries = L"3";
CONST LPWSTR pSuccessfulRetries = L"0";
CONST LPWSTR pQuarts = L"8";
CONST LPWSTR pGallons = L"2";

#2
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,251 posts
  • Location:C:\Countries\US
Are you sure this is assembly code?

#3
Gunner

Gunner

    Learning Programmer

  • Members
  • PipPipPip
  • 45 posts
Andy those are Unicode strings... I will send you code that will create the unicode strings in MASM...




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users