473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

SendMessage() for saving text file

Sn
Does anyone know how to use the SendMessage() function to save a text
file in UTF-8 format. what are the Msg, Wparam and the lParam
parameters passed to the function?

Nov 14 '05 #1
3 2139
Sn <su**********@gmail.com> scribbled the following:
Does anyone know how to use the SendMessage() function to save a text
file in UTF-8 format. what are the Msg, Wparam and the lParam
parameters passed to the function?


There is no SendMessage() function defined in ISO standard C. Judging by
the bastardised Hungarian notation -lookalike, you probably want
comp.os.ms-windows.programmer.{misc,win32}.

--
/-- Joona Palaste (pa*****@cc.helsinki.fi) ------------- Finland --------\
\-------------------------------------------------------- rules! --------/
"It's time, it's time, it's time to dump the slime!"
- Dr. Dante
Nov 14 '05 #2
"Sn" <su**********@gmail.com> writes:
Does anyone know how to use the SendMessage() function to save a text
file in UTF-8 format. what are the Msg, Wparam and the lParam
parameters passed to the function?


I would expect that fopen(), fwrite(), and fclose() would serve
better for writing files. This is especially true because
standard C does not have a SendMessage() function.
--
"For those who want to translate C to Pascal, it may be that a lobotomy
serves your needs better." --M. Ambuhl

"Here are the steps to create a C-to-Turbo-Pascal translator..." --H. Schildt
Nov 14 '05 #3
"Sn" <su**********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Does anyone know how to use the SendMessage() function to save a text
file in UTF-8 format. what are the Msg, Wparam and the lParam
parameters passed to the function?


The function 'SendMessage()', and the types 'MSG', 'WPARAM',
and 'LPARAM' are part of the Microsoft Windows API, and
are not part of the C language or its standard library.

<OT>
In any event, even with Windows, 'SendMessage()' has
nothing to do with file i/o. It's for communicating
with windows (via 'window handles').
</OT>

Ask about the Windows API in group comp.os.ms-windows.programmer.win32

-Mike
Nov 14 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Adam Clauss | last post by:
I am attempting to set the text on a richedit control in another application using EM_SETTEXTEX:...
4
by: dale zhang | last post by:
Hi, I am trying to save and read an image from MS Access DB based on the following article: http://www.vbdotnetheaven.com/Code/Sept2003/2175.asp Right now, I saved images without any...
3
by: Rob | last post by:
Hi all, I am having trouble converting the code below (found on http://vbnet.mvps.org/index.html?code/core/sendmessage.htm) into a format that will work using vb .NET. Can anyone have a look...
3
by: Max M. Power | last post by:
When I use the SendMessage API I can sucessfully send and receive a user defined message. When I use the PostMessage API I can NOT sucessfully send and receive the same user defined message. ...
3
by: geskerrett | last post by:
Hope someone can steer me in the right direction. I am trying to use python to collect the values from a Win32 application's control. I can successfull query an retreive the values ListBox, Edit...
3
by: Mark Ingalls | last post by:
Hello Everyone, I'm trying to send a text string to a dialog edit control using SendMessage and WM_SETTEXT and cannot get it working correctly. Here is the declaration of the function: ...
15
by: Necromis | last post by:
Ok, I am really losing it. I cannot seem to wrap my head around the SendMessage function/method. What I am trying to do is send text/data to an instance of a window that I know the handle of from...
1
by: Necromis | last post by:
Ok, I have gotten my head around things better regarding SendMessage and FindWindow functions. However, I am running into an issue with my code still. The program I am working with is EXTRA! by...
3
by: michelqa | last post by:
Hi, I already post a similar question last week without success. Ok I want to get the current text selection in a RICHEDIT control.. This can be easily done in C++ with EM_EXGETSEL message. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.