I'm tring to write 3 lines to a text file using CFile::Write. I need a carriage-return between each line but don't seem to be able to achieve that. This is my code
mac.Open("macro.txt", CFile::modeCreate | CFile::modeWrite)
when I then open the file with notepad, the carriage return "\n" the carriage return just give me a f...SaveBarState fails when it is called from a thread #7
In my application, I use SaveBarState() for persisting control bar
The code fragment is something like this.
// Saves some information to an xml file
Since my xml saving takes some time I changed the code to execute in a
UINT ThreadFn(LPVOID pParam)
CMainFrame* pThis = (CMainFrame*)pParam;
AfxBeginThread( ThreadFn, this );
But, now in the thread function SaveBarState...ActiveX issue in PowerPoint 2003
I used More Tools/"Microsoft Forms 2.0 Frame" to add a scrollbar to one
slide's image. This works fine, but now every time I open the saved file I
get the following message:
"This application is about to initialize ActiveX controls that might be
unsafe. If you trust the source of this document, select Yes ..." Well, of
course I trust the doc, because I'm the one who created it.
The message also states "If you have changed the default setting for ActiveX
initialization during the installation process ... the system will perform
the initializati...icon and control list
can anybody advise me on how to add icon in control list ?
thanks in advance,
Can you describe in detail?
"JSmith" <email@example.com> д����Ϣ����
> can anybody advise me on how to add icon in control list ?
> thanks in advance,
Hello Tianyuan ,
Sure, I'm going to list keys of a configuration file into a control list so
it should have a column as icon. Since every key has an attribute (e.g.
system key, non-system and ... ) so I like to insert an icon for each key in
regard with its ...Add edit control to a view derived from CScrollView
I have a view class which is derived from CScrollView. I added a CEdit
control to it. But the position of the edit control was not correct. I
think it is because I set the map mode to MM_TWIPS for drawing things
in the view and the edit control was positioned with a CRect, which
values are in MM_TEXT mode. My question is how do I set the correct
postion of the edit control in my view class. Thanks!
Seems to me that you have the answer already -- convert your CRect
values to twips instead of device units.
In article <firstname.lastname@example.org>,
email@example.com...Software recommendations for Document Control, CAPA and PLM
My company is looking for third party software for Document Control, CAPA and
PLM. If any of you have any recommendations, please post.
It will be nice if these softwares could interface with Great Plains.
...How to access a function in a User Control
I have created a MFC ActiveX OCX, using VC++ 7.0, which contains a dialog. I
have embeded another user created control (this was created with VB6). This
VB6 control exposes 2 functions. I would like some help on how to call these
functions from my MFC OCX (say on a button click event).
Thanks in advance ...
> I have created a MFC ActiveX OCX, using VC++ 7.0, which contains a
> dialog. I have embeded another user created control (this was created
> with VB6). This VB6 control exposes 2 functions. I would like some
> help on how to call these functions fr...Problem with List Control Box
I have a list control with 3 columns. For some reason when I try to
insert an entry into the list control, sometimes, only the item's first
value gets added, but the values for the 2nd and 3rd column are not
there. If i continue to add the same entry consistently, eventually
the entry will be added correctly with all three values. Why is that?
sometimes I will add (a,b,c) into my List control box, but only (a)
gets shown. But if i keep inserting an item, eventually the entry
(a,b,c) will be added...
>I have a list control with 3 columns. For some reason when I try ...Ato generated control number
Hi , Thank you for any and all assistance.
I have a customer entry form(CustEntryForm) the fields that I want to auto
populate are CreationDate, ControlNumber. The CreationDate date/time stamps
when the customer request is created. The ControlNumber is my request
tracking field. The CreationDate field works. What I am having a problem
with is getting the ControlNumber field to auto generate. The ControlNumber
is being created based on the CreationDate field by grabbing the year portion
of the date. The date is structured like yy-001(10-001) I have the following
SQL state...graph control needed
i want a graph control to draw a linear and smooth graph.I am using
any kind of guidance is appreciated....
check this: http://www.codeproject.com/miscctrl/mschartvc.asp
> i want a graph control to draw a linear and smooth graph.I am using
> any kind of guidance is appreciated....
This one might be interesting to you as well:
"quickdeveloper" <firstname.lastname@example.org> wrote in message
news:1137499093.575651.292350@g43g...Write Namevalue pair into Config file
Hi I have this constraint. A help would be greatly apprecitated.
I have this Config file.
<?xml version="1.0" encoding="utf-8" ?>
<add key="projcode1" value="database"/>
<add key="projcode2" value="database2"/&...Creating and adding controls
I need to dynamically create and add controls to a property sheet (page).
When should this be done. I can't during OnInitDialog because the dialog
doesn't have a hwnd at that time. What other function could I do this?
Do it in OnInitDialog() , after calling the base class OnInitDialog()
function. Something like
CPropertyPage::OnInitDialog(); // base class function
// Your control creation
Check Abdoul [VC++ MVP]
"...MFC ActiveX Control not working
I created this ActiveX control in MFC and put it at
it doesn't work. I wasn't sure what to put for the #Version
part of the codebase tag, so I just randomly put
#Version=1,0,0,001. Can someone please help me? I've
looked all over and have found no useful info on this issue.
...Problem with ActiveX Mousewheel
Sorry for posting in the general group. I posted this in the ActiveX
group, but it looks like that group is all but extict. I thought I'd try
I've used the MouseWheel control in the past without problem, but now
I have one. In trying to understand it, I came up with a question as well.
I use the control to make the mousewheel act on a listbox, called
lstGroup, that is on the form. The code I include in the form's module is
at the bottom of the post. Whenever I close the form, I get the error:
...Write to Module While Macro is Running
I have a macro that allows the user to study vocabulary words. At the
outset the array is filled with integers, one for each word. A number
is randomly selected from the array and the word corresponding to that
number is examined. That number is then removed from the array. Only
after all words have been examined is the array is repopulated with
all of the numbers. This allows to the user to examine all words
before a specific word is encountered again. On exiting the workbook,
whatever numbers remain in the array are written to a worksheet, so
that the array can be filled with o...Link a Spinner to a combo box control
I don't know if my terminology is correct ( i am going by what pops up
when I hold my mouse over the controls on the control tool bar) but I
am having trouble linking a spinner to a combo box on a worksheet. What
i want is a way for a user to cycle through the values in the combo box
using the spinner. I am sure there should be an easy way to do this but
for now I am stumped. I have tried linking them both to the same cell
which works ok if I change the cell value manually but if I change it
using the spinner the combo box does not update. Strangely if I change
the choice in the c...Priority on Service Call
Where does the Priority field default from on the Service Call Entry/Update
screen. I'm unable to find the setup screen that specifies the Priority Code
to use when GP creates a new Service Call.
It defaults from the debtor card if set-up.
> Where does the Priority field default from on the Service Call Entry/Update
> screen. I'm unable to find the setup screen that specifies the Priority Code
> to use when GP creates a new Service Call.
What is the debtor card?
"Chris B" wrote:
> It defaults from the de...Header Control Issue
How to make Header Control rectangle size to some value say 15.
for me GetItemRect gives height as 22 i want to make it as 15 and then
draw it on the list control.
I am using Visual Studio 2005, in this the height of header control is
22 and in visual studio 6 the height was 15.
how to make it a custom draw rectangle for this so that i can place a
bitmap on that header control.
Thanks for the help in advance..
Maybe you could show your code. It doesn't make sense to me that going to
VS 2005 would make a difference in the header of the list control and se...Reduce character spacing in an edit or rich edit control?
I want to alter the text on screen so as to better match what is
printed. I would like to use SetTextCharacterExtra on an edit or rich
edit control so that the text may be squished together. Is this
I am having a WYSIWYG problem with fonts, in particular the Courier New
font. The problem is that the horizontal CPI (characters per inch) of
the font is different on the screen than it is on the printer. The
cause appears to be that the screen does not have as high a density of
pixels as the printer. So windows tries to make the font looks nice on
screen by giving it...ANN
ANN - Your Pimp called and you owe $500. Pay up right away. Just FYI.
..."Your last call encountered an error"...
I've searched and read through 6 pages of posts and didn't find my question
already answered. Here goes..
When the new changes went into effect, I like many other people had problems
logging into billpay. I had to go through phone support and they assisted me
in changing my password to billpay that I used for Money 2005. I can now log
into billpay via the website and see all my account info, etc. However, when
I try to go to Tools-->Internet Updates-->Update Now within Money '05, I'm
able to update the general news, but my bank account and MSN billpay calls
can i control the discounts in MS RMS 1.3
cashier 1 should can do discounts but not more that 10 %
Exhortech Business Solutions
...Do I need to use VBA for the following control structure?
I have the following control structure from Matlab, do you think I need VBA
to handle it, or I can just rely on Excel?
Thanks a lot!
You can just rely on Excel:
In row 1 put the labels t,DefaultTime,
i used the mfc develop a activex control,and i did not add any code in it
and make the activex control into the html.but when i closed the internet
explore,one error was showed.Why?
"chuangyl" <msnews.microsoft.com> wrote in message
> i used the mfc develop a activex control,and i did not add any code in it
> and make the activex control into the html.but when i closed the internet
> explore,one error was showed.Why?
What does the error say?
Ajay Kalra [MVP - VC++]
...Problem bringing up Group Policy on Domain Controller
I loaded the Group Policy snap in on my xp machine and got the following
error on my Server 2000 domain controller:
"The following entry in the [strings] section is too long and has been
truncated" error message when you try to modify or to view GPOs in Windows
server 2003, Windows XP Professional or Windows 2000.
This is a well-documented and there is a hot fix. After I applied the hot
fix the error was gone, but I still cannot access some group policies. Why
and what can I do. My boss likes to work ar the server console and he cannot
do that and is furious.
You need to...