Click here to Skip to main content
15,916,378 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralError during CryptAquireContext() - using wincrypt.h Pin
esapp42021-Aug-02 9:58
esapp42021-Aug-02 9:58 
GeneralRe: Error during CryptAquireContext() - using wincrypt.h Pin
Le centriste21-Aug-02 11:16
Le centriste21-Aug-02 11:16 
GeneralRe: Error during CryptAquireContext() - using wincrypt.h Pin
esapp42022-Aug-02 4:20
esapp42022-Aug-02 4:20 
GeneralRe: Error during CryptAquireContext() - using wincrypt.h Pin
Le centriste22-Aug-02 9:07
Le centriste22-Aug-02 9:07 
GeneralCDialogBar Pin
Gary Kirkham21-Aug-02 9:29
Gary Kirkham21-Aug-02 9:29 
GeneralRe: CDialogBar Pin
Ernest Laurentin21-Aug-02 9:36
Ernest Laurentin21-Aug-02 9:36 
Generalmenu newbie, please help ... Pin
includeh1021-Aug-02 8:46
includeh1021-Aug-02 8:46 
Generallooks dangerous, used no problem, need suggestion... Pin
includeh1021-Aug-02 8:42
includeh1021-Aug-02 8:42 
i develped an app, it has been used by customers for over 2 months (at least 16 hrs a day - for machines) with no problem, but i still warry about it, really need ur suggestion.

my question is:
in the app, i used a large buffer, some code as following:

//the large buffer, iSize>100,1000
char*pszBuf=new char[iSize];

char*p0=pszBuf+100;
char*p1=pszBuf+1000;
char ch=*p1;
*p1=0; //key point to warry, temp break the string
CString cs=p0;
*p1=ch;

in this way, access can be in high speed, main app uses in the way always (say, once/50 ms).

there are 3 threads use the buffer at same time (read only) and access whole buffer.

at first, i thought there must be troubles because i broke the buffer with *p1=0 and other threads can't access whole buffer. but after 2 months, no any problem!

in theory, i need to lock the buffer while doing break, but it is too complicated to do so.

why no problem? am i luck or OS helps me to do something i don't know?

thx.















includeh10
GeneralRe: looks dangerous, used no problem, need suggestion... Pin
Mustafa Demirhan21-Aug-02 9:22
Mustafa Demirhan21-Aug-02 9:22 
GeneralRe: looks dangerous, used no problem, need suggestion... Pin
Ernest Laurentin21-Aug-02 9:32
Ernest Laurentin21-Aug-02 9:32 
GeneralRe: looks dangerous, used no problem, need suggestion... Pin
Daniel Lohmann23-Aug-02 11:28
Daniel Lohmann23-Aug-02 11:28 
GeneralWin CE && ADO Pin
Like2Byte21-Aug-02 8:14
Like2Byte21-Aug-02 8:14 
GeneralSetModifiedFlag(); Pin
Garry White21-Aug-02 7:42
sussGarry White21-Aug-02 7:42 
GeneralRe: SetModifiedFlag(); Pin
Chris Richardson21-Aug-02 7:46
Chris Richardson21-Aug-02 7:46 
GeneralRe: SetModifiedFlag(); Pin
G. White21-Aug-02 8:25
G. White21-Aug-02 8:25 
GeneralMain window pops out Pin
Shay Harel21-Aug-02 7:18
Shay Harel21-Aug-02 7:18 
GeneralAuto Fill in IE or Netscape Pin
Ranjan Banerji21-Aug-02 6:49
Ranjan Banerji21-Aug-02 6:49 
GeneralRe: Auto Fill in IE or Netscape Pin
Domenic Denicola21-Aug-02 7:04
Domenic Denicola21-Aug-02 7:04 
GeneralRe: Auto Fill in IE or Netscape Pin
Stephane Rodriguez.21-Aug-02 7:24
Stephane Rodriguez.21-Aug-02 7:24 
GeneralRe: Auto Fill in IE or Netscape Pin
Ranjan Banerji21-Aug-02 10:22
Ranjan Banerji21-Aug-02 10:22 
GeneralRe: Auto Fill in IE or Netscape Pin
Stephane Rodriguez.21-Aug-02 22:22
Stephane Rodriguez.21-Aug-02 22:22 
GeneralRe: Auto Fill in IE or Netscape Pin
Anonymous22-Aug-02 12:22
Anonymous22-Aug-02 12:22 
GeneralRe: Auto Fill in IE or Netscape Pin
Anonymous22-Aug-02 12:33
Anonymous22-Aug-02 12:33 
GeneralCString Problerm Pin
Zayax21-Aug-02 6:07
Zayax21-Aug-02 6:07 
GeneralRe: CString Problerm Pin
lucy21-Aug-02 6:09
lucy21-Aug-02 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.