|
I assume you added numbers 0 through 255 via AddString() (or InsertString() ). Yes? If that is the case, use GetWindowText() to get the text displayed in the combobox.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
i want to make the email client that send the mail from
someone(anybody pc in sense of hacking) into mail hotmail or the yahoo account. can u tell me how to do that or what API's to use but not component in VB and outlookexpress,
that apis can run on the win32 platform. Can u guide me what to do
Tasleem
ddd
|
|
|
|
|
Check out (Extended) MAPI, or SMTP.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Anyone know what Win32 technology will allow me to create a global memory structure (a couple of meg or so) and have it stay in memory after the creating application has ended? There is no reason for the structure to cross reboots.
I don’t want to use the persistent technologies like the registry or the hard drive. In the old 16 bit days, I would just GlobalAlloc a couple of Meg and write the handle to the atom table and use it when I need to or something like that. But today…when an application exits all resources it allocated are released (unless another application opened the same resource), which is pretty cool, but not what I’m looking for.
Here’s what I’ve tried and the problems with them:
1) GlobalAlloc – deleted on program exit
2) Volatile registry – best practices says not really good for more than 2k of data
3) Memory file via CreateFileMapping – deleted on program exit
4) Global Atoms – not big enough, only 16k entries and each entry is limited to 256 bytes
My limitations are that I have to rely on whatever is already on the machine and can't install anything...in other words...static linking and straight Win32.
Any ideas?
|
|
|
|
|
iwasiunknown wrote:
3) Memory file via CreateFileMapping – deleted on program exit
So create a small process that doesn't exit to hold onto it.
Shog9
I'm not the Jack of Diamonds... I'm not the six of spades.
I don't know what you thought; I'm not your astronaut...
|
|
|
|
|
Thanks Shog.
That doesn't really work for me either since I can't have an installation program. All I can
use is a single .exe with no installation.
|
|
|
|
|
hi
i want to write a DLL that using header from libyahoo2(http://www.libyahoo2.sourceforge.net)
here is the code snipets
==========================================================================
#include "stdafx.h"
#include <libyahoo\yahoo2.h>
#include <libyahoo\yahoo2_callbacks.h>
//function declaration
extern "C" __declspec(dllexport) void __cdecl Close(int id);
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
__declspec(dllexport) void __cdecl Close(int id)
{
yahoo_close(id);
}
======================================================================
when i compile this dll project, i've got no error
but when i execute this project i've got 2 error said:
======================================================================
Linking...
Creating library Debug/YahooLib.lib and object Debug/YahooLib.exp
YahooLib.obj : error LNK2001: unresolved external symbol _yahoo_close
Debug/YahooLib.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
YahooLib.dll - 2 error(s), 0 warning(s)
=====================================================================
please helppp me, i am really don't know what to do
i appreciate any help
thankss
|
|
|
|
|
xeru_slash wrote:
but when i execute this project i've got 2 error said:
Actually you are getting a linker error, not a runtime error.
xeru_slash wrote:
YahooLib.obj : error LNK2001: unresolved external symbol _yahoo_close
You need to link with the library that contains the code for _yahoo_close() .
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
thanks for your reply
but there is no lib files
only header and c file
|
|
|
|
|
|
xeru_slash wrote:
but there is no lib files
My bad for making that assumption. At a minimum, you'll need to link with the .obj file that has that function in it.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Can anyone help me develop sum small software using MFC, having sock classes and database classes ( such as Ms Access ) ? any examples or links will be appreciated.
Blacknight_81
University of Huddersfield, UK.
|
|
|
|
|
Why don't you start the planning yourself and ask us a more precise question?
"Do my homework for me!" is very unpopular!
Don't try it, just do it!
|
|
|
|
|
|
My application must add and remove some pages from a CPropertySheet in the middle of the "modal loop" (for instance, when the user clicks a button...)
The problem is the CPropertySheet does not resize to fit the newly added pages except when these are added before the call to DoModal()...
Can anybody figure a way to resize the CPropertySheet suitably?
tks
Bruno Norberto
|
|
|
|
|
I create object from remote machine, as dll in a surrogate,
within it I
register IUnknown in a ROT with Register active object,
than, I call from else process on same remote machine GetActiveObject with same guid -
(guid - is created by me!)
but receive exception of unknown type catch(...)
what is the prolem can it be?
thanks you.
|
|
|
|
|
I have designed a tool using MDI application...
In each MDI child window i have drawn objects like square,circle and other figures.
I would like to know if these can be saved and reloaded on starting the application afresh.
I havent used serialization but will it reproduce the graphical objects drawn in the client area of the window.
laiju
|
|
|
|
|
Serialization would be the keyword, thats your way to store the info to recreate all the figures.
I'm sure there are articles about that on CP.
Don't try it, just do it!
|
|
|
|
|
how do i have some text displayed next to the button when the mouse is over the button? just like the alt function of html code.
this is for displaying the function of the button. anyone pls help? thanks a lot!
|
|
|
|
|
|
|
Hello, I posted this problem yesterday and it didn't get any responses so I figured I would try it on more time... I have a MDI type app where one of my views was derived from CView and then converted into CRichEditView...
Anyway everything works fine except I want to turn horizontal scrolling on and I would like to disable word wrapping. I have tried to change the window styles in PreCreateWindow but this doesn't seem to have any effect on horizontal scrolling. Any ideas? Has anyone had similar experiences?
Thanks,
Rob
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
I just figured it out.. Incase anyone else runs into this....
Inside OnInitialUpdate()
m_nWordWrap = WrapNone;
WrapChanged();
Inside PreCreateWindow
cs.style += ES_MULTILINE | WS_VSCROLL | ES_AUTOVSCROLL | ES_LEFT | ES_AUTOHSCROLL | WS_HSCROLL;
Whoever said nothing's impossible never tried slamming a revolving door!
|
|
|
|
|
hiho@ll
i know this site is for windows programming, but i just wanted to know if my C-Code could have a problem, and this website is very well visited i think
for those who also use linux:
i'm coding on a suse linux box with kernel 2.4.21-226-default running gcc v 3.3.1
the problem is a function named strtok
which tokenizes my string using a delimiter
char test[]="hallo hallo2";
z.B. first call strtok(test," "); // returns hallo
seconde call strtok(NULL," "); // returns hallo2
this code works!:
char str[] ="This is a sample string,just testing.";
char * pch;
printf ("Splitting string \"%s\" in tokens:\n",str);
pch = strtok (str," ");
while (pch != NULL)
{
printf ("%s\n",pch);
pch = strtok (NULL, " ,.");
}
this code doesn't work! (i get a segmentation fault):
char *str ="This is a sample string,just testing."; // just changed char[]
char * pch;
printf ("Splitting string \"%s\" in tokens:\n",str);
pch = strtok (str," ");
while (pch != NULL)
{
printf ("%s\n",pch);
pch = strtok (NULL, " ,.");
}
could there a problem with the code itself?
what's the difference between pointers and arrays?
i thought there is no difference!
thx@ll
|
|
|
|
|
strtok() actually modifies the source string. That's why str[] works and str* does not.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|