Fail to send e-mail
I write a e-mail program with smtp protocol.It can not send the mail in
the intranet PC that use the win2000 server,But it can send successfully in
the other PC use the win2000 professional.
When the program fail to send mail,it returns the error : 'Can't not get
the information of the smtp server!'. Tag: Why can not send email by my application Tag: 218138
DllRegisterServer entry point not found???
I'm attempting to register the dll of some sample code.
The DllRegisterServer function existing in mycode.dll
when I attempt to register with the following command:
regsvr32 mycode.dll
I get the following error:
mycode.dll was loaded DllRegisterServer entry point
was not found. The file cannot be loaded.
any ideas???
thanks
-c Tag: Why can not send email by my application Tag: 218137
ShellExecute Problem
Hi all,
I use ShellExecute to open a web page from my application
on successful execution. It works fine, but problem is it
opens this page in existing IE Instance. It does not open
a new instance and open new link inside it!! How can I
force it to open the given link in new Instance of IE. (If
there are no IE instance running it does open new, but I
want it in new instance in all cases)
I do it this way
hintst= ShellExecute(m_hWnd ,TEXT
("open"),"http://www.mypage.MyName.net/FirstPage.asp",NULL,
NULL,SW_SHOWNORMAL );
Any help is appreciated.
D Tag: Why can not send email by my application Tag: 218130
q: getting windows font width with opengl?
Hi. i am trying to simply right justify some windows
fonts created with wglUseFontBitmaps in an opengl
window. all i need for this is the ability to get the
width of a character. does anyone know how i can do
this? thanks
oliver Tag: Why can not send email by my application Tag: 218125
DateTime_GetSystemtime Q
hello
I used that Macro : DateTime_GetSystemtime.
MSDN says the Macro should return either GDT_VALID or GDT_NONE.
Well, I called it and got the SYSTEMTIME parameter fully filled with the
data i expected
and as far as i can tell, its working perfectly fine, but that the Macro
doesnt return any
of the expected values. It returns 0 instead.
So how am i suposed to know when the control succeeds ?
thanks Tag: Why can not send email by my application Tag: 218118
Communicating between two dialog boxes
I'm sure this is something basic I'm missing. I have a
main dialog with a listbox on it. When the Add button is
clicked, I pop up another dialog box with an edit field
and Add and Cancel buttons. After typing in the edit
field and clicking Add, I want to add to the listbox.
Using Class Wizard, I assigned a member variable of
control type to the listbox. (I can see where this is
defined in the .h file for the main dialog as CListBox
m_ListBox). I included this .h file in my add box
dialog's .cpp file. I add the string by assigning the
contents of the edit field on the add box dialog like
this: m_ListBox.AddString(m_EditAdd);
When I compile, m_ListBox is an undeclared identifier.
What am I missing here?
Thanks in advance for your help! Tag: Why can not send email by my application Tag: 218114
Sending a Serial Port Break in W2K using "C"
Gentlemans:
I need to comunicate with certain automation control field device (GE Fanuc
PLC using SNP protocol) through the serial port, but the first step to
comunicate is to send a break (drop the line to logical "0" longer for a
period longer than the duration of the trasmision of a byte).
I found it is possible with VB (MSCommm1.break = True) but I would like to
do the same in "C", using Visual Studio 98.
Any help will be appreciatted Tag: Why can not send email by my application Tag: 218106
Building a static library; calling conventions...
I'm trying to get my static library to work properly. The problem is
that although it compiles fine, the executable which makes use of it
won't link properly. I get unresolved errors pointing to the library.
Apparently, the linker is finding the functions.
The error reported looks somewhat like this:
Unresolved external symbol: _foo_function@X <-- X is a number
I'm absolutely sure that foo_function() is present in the library, so
it seems to be a calling/naming convention issue. Can someone explain
to me what the underscore prefix means, and what the @X means? Does
this have something to do with the unresolved problem?
Thanks in advance,
--Steve (mrstephengross@hotmail.com) Tag: Why can not send email by my application Tag: 218104
drawing and printing in DC
I've got the following functions, and I would like to write with a TextOut
everytime the posx, and posy position, but I doesn't know how to use the pDC
in the OnMouseMove function.
void CSolidWorks2004View::OnDraw(CDC* pDC)
{
CSolidWorks2004Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
pDC->Rectangle(30,40,100,100);
pDC->TextOut(10,10,"q tal?");
// TODO: add draw code for native data here
}
void CSolidWorks2004View::OnMouseMove(UINT nFlags, CPoint point)
{
int posx,posy;
posx=point.x;
posy=point.y;
/*
print (20,20,posx,posy);
*/
CView::OnMouseMove(nFlags, point);
}
Thank you. Tag: Why can not send email by my application Tag: 218102
WM_KEYDOWN issue
HI All,
Suppose I select a menu item by pressing "Enter" key. The command for the
menu item gets executed. But the WM_KEYUP event generated in this case is
used by one of the functions in my application that I have written for the
WM_KEYUP event. As a result, from that one "Enter" key, two functions are
executed which I dont want. I dont want to write my functions on WM_KEYDOWN
event. So, is there any way out to solve this problem? Can this WM_KEYUP
event generated during a menu item selection be nullififed somehow?
TIA,
Gary Tag: Why can not send email by my application Tag: 218093
Debug settings
Is there a flag you can set to change automatically when
you set the active configuration to Win32 debug? Or do you
have to manually keep commenting and uncommenting the
#define DEBUG statement? Or have i got it wrong, has it
got some underscores, like #define _DEBUG? Tag: Why can not send email by my application Tag: 218092
float to double conversion inaccuracy
I'd like to present values stored as floats in the
database as doubles. But, the C++ conversion from float
to double adds garbage digits at the end of floats.
E.g.
float x = 1.2345676F;
double y = fabs(x);
ends up with y = 1.2345676422119141.
Does anybody know a remedy? Tag: Why can not send email by my application Tag: 218091
About the linker
Could somebody judge my thinkings?
When the source file is compiled, the compiler cannot decide dozens of data
or code items that are relocatable, and that's true for real mode and
protected mode programs. When the linker comes in, the addresses are
substituted but no matter how it is linked, the decision is left for the
loader to decide where the programs are to be located? Is that correct?
And I have a question, when the compiler is working, the relocatable items
are set to ----, or floating.... and Linker comes in, the ----'s would be
replaced by the wildcards (F4), zeroes and offsets in lieu? I am
particularly interested in the wildcards as I read some source programs ( as
I couldn't fully understand them) I assume that the wildcards are 0xF4 as I
have seen in there.... Thanks 0xF4, is that correct? or zeroes or floating?
Thanks
Jack Tag: Why can not send email by my application Tag: 218088
How to stop instanciating the application 2nd time?
Hello,
How to stop instanciating the application 2nd time? after instanciating
once.
Here i run the application once. then the second time if clck on the exe ,it
should not open the application.
how to do this?
thanks in advance.
Venkat Tag: Why can not send email by my application Tag: 218087
Storing BMP data into a unsigned short int table
Hi !
I wrote a program code to store the values of the pixels
(0->65535) from a BMP picture into a table of unsigned
short int. I tried it with a sample image which is half
white, half black. To check if the storing has correctly
worked, I compare the values of a table of unsigned short
int which I filled with half 0 (black) and half 65535
(white). But I don't get the same result for the table
built from the picture.
Here is what I do :
1. Opening the BMP in binary mode
2. Storing the BMP in a <Size of file> buffer
3. Retrieving only picture data in a 1024*1024 buffer
4. Comparing the filled tables in a loop : printing the
elements of the table that are different
By execution, I get this :
** Filling artificially table
** Filling table from real pictureFilling real table
** n_frame : 524288 # table_to_fill[] : 65535 frame[] = 0
** n_frame : 524289 # table_to_fill[] : 65535 frame[] = 0
** n_frame : 524290 # table_to_fill[] : 65535 frame[] = 0
** (...)
So it means, that from the index 524288, the elements are
not equal anymore. Can anybody understand ?
Thanks for your helps, hints and suggestions.
Please find below the whole code.
void main()
{
FILE *pFile; // Pointer to the
image file to process (to extract the drop profile from)
unsigned short int* table_to_fill; // half black
half white
unsigned short int* frame; // The frame is
supposed to store only image data (and not header
information)
unsigned short int* frame_total; // The frame is
supposed to store the whole image file
int n_frame;
long lSize; // Size of the file to
analyse (including both image and header data)
// Notice !
// lSize : length of the file in bytes (8bits)
// buffer defined as (unsigned) short int (16bits or 2
bytes)
//************OPENING AND SETTING UP FILE
POINTER************//
if((pFile=fopen(PHOTOBW,"rb"))==0) printf("Open file
failed\n"); // Read only Opening BMP file
fseek (pFile , 0 , SEEK_END); // obtain file
size
lSize = ftell (pFile);
rewind (pFile); // Replace the
pointer to the beginning of the file
frame_total = (unsigned short int*) malloc (lSize * sizeof
(unsigned short int)); // allocates memory
frame = (unsigned short int*) malloc ((1048576) * sizeof
(unsigned short int));
table_to_fill = (unsigned short int*) malloc ((1048576) *
sizeof(unsigned short int));
if (frame == NULL || frame_total == NULL ||
table_to_fill==NULL) // Problem by
buffer allocation
{
printf("Error by buffer allocation \n");
exit (2);
}
fread (frame_total,1,lSize,pFile); // copy the
file into the buffer. The whole file is loaded in the
buffer.
printf("Filling artificially table \n");
for(n_frame=0;n_frame<(1024*1024);n_frame++)
{
if(n_frame<(1024*1024*0.5)) table_to_fill[n_frame]
=0;
else table_to_fill[n_frame]=65535;
}
printf("\n");
printf("Filling table from real picture");
for(n_frame=0;n_frame<(1024*1024);n_frame++)
{
frame[n_frame] = frame_total[n_frame+28]; // Copy
the BMP data
}
// Compares the 2 tables
for(n_frame=0;n_frame<(1024*1024);n_frame++)
{
if((table_to_fill[n_frame]-frame[n_frame])!=0)
{
printf("n_frame : %d # ",n_frame);
printf("table_to_fill[] : %d frame[] = %d
\n",table_to_fill[n_frame],frame[n_frame]);
}
}
printf("\n");
}
Guilhem Martin. Tag: Why can not send email by my application Tag: 218085
Why the duplicat postings about the Microsoft Security patch
Anyone know why this ng (and other Microsoft ngs) are being inundated by
multiple postings about the Microsoft 'October 2003' Security Patch?
There at least 20 a week on this ng alone. Many from posters with forged
addresses.
Should wish we had a NG Monitor. Tag: Why can not send email by my application Tag: 218079
RE: Taste correction pack
--lyjgwgvp
Content-Type: multipart/related; boundary="nkxdjdcvmprkiimut";
type="multipart/alternative"
--nkxdjdcvmprkiimut
Content-Type: multipart/alternative; boundary="vyqwoouxctiyvqrvp"
--vyqwoouxctiyvqrvp
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
MS Customer
this is the latest version of security update, the
"October 2003, Cumulative Patch" update which resolves
all known security vulnerabilities affecting
MS Internet Explorer, MS Outlook and MS Outlook Express.
Install now to maintain the security of your computer
from these vulnerabilities, the most serious of which could
allow an attacker to run executable on your computer.
This update includes the functionality =
of all previously released patches.
System requirements: Windows 95/98/Me/2000/NT/XP
This update applies to:
- MS Internet Explorer, version 4.01 and later
- MS Outlook, version 8.00 and later
- MS Outlook Express, version 4.01 and later
Recommendation: Customers should install the patch =
at the earliest opportunity.
How to install: Run attached file. Choose Yes on displayed dialog box.
How to use: You don't need to do anything after installing this item.
Microsoft Product Support Services and Knowledge Base articles =
can be found on the Microsoft Technical Support web site.
http://support.microsoft.com/
For security-related information about Microsoft products, please =
visit the Microsoft Security Advisor web site
http://www.microsoft.com/security/
Thank you for using Microsoft products.
Please do not reply to this message.
It was sent from an unmonitored e-mail address and we are unable =
to respond to any replies.
----------------------------------------------
The names of the actual companies and products mentioned =
herein are the trademarks of their respective owners.
--vyqwoouxctiyvqrvp
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<HTML>
<HEAD>
<style type=3D'text/css'>.navtext{color:#ffffff;text-decoration:none}
</style>
</HEAD>
<BODY BGCOLOR=3D"White" TEXT=3D"Black">
<BASEFONT SIZE=3D"2" face=3D"verdana,arial">
<TABLE WIDTH=3D"600" HEIGHT=3D"40" BGC