|
Could CListCtrl::GetColumnOrderArray[^] help?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Hiho
I would like to increase the size of the window showing the month, that appears if you click on the dropdown-icon. The problem is, I don't have a clue how to do that, because it is drag and drop from the tools. I would be happy about any sugestions.
Thx
Jan
|
|
|
|
|
Xerantes wrote: I would like to increase the size of the window...
At design time or run time?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Good Question. At Design would be sufficient for me.
|
|
|
|
|
After you add a control to the dialog template, just grab the resizing handles (of the control) to size/move accordingly.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I don't know if i made myself completly clear. I want to change the size of the window, that is only visible at run time. You can only resize the dropdownbar, when you add it to the dialog and not the window showing the selection area for the date.
http://msdn.microsoft.com/de-de/library/4xyy1csh.aspx
|
|
|
|
|
Xerantes wrote: I don't know if i made myself completly clear. I want to change the size of the window, that is only visible at run time.
Point taken. At this time, all I know is that the (month) control is a SysMonthCal32 window. You might have to handle the clicking of the down arrow.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Thx. I will take a look in that direction.
|
|
|
|
|
Hello friends, I'm Luisa, and I'm a MFC developer. For the first time I'm using CDatabase with a UDL file. But I don't if it's possible. Normally, I'm using MDB file. Can someone help me??
Kisses
Luisa
|
|
|
|
|
I have not used this myself but there is some useful information here[^] on MSDN.
It's time for a new signature.
|
|
|
|
|
The CDatabase class makes ODBC connections to a database. Depending upon what ODBC driver you are using it may or may not take a UDL file as the connection string. You may be able to call
CDatabase myDB;
myDB.OpenEx(File=C:\MyConnectionString.UDL);
, but it really would depend upon the driver being used.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
|
|
|
|
|
Thanks for your help. I have a right udl file (I can connect to my server executing the connection test) but using the string "File=C:\MyConnectionString.UDL" it cannot work. I don't know why, but it's not working. How and where can be something wrong?
TuxOnHumax Team
|
|
|
|
|
Undici77 wrote: "File=C:\MyConnectionString.UDL"
Your string should look like "File=C:\\MyConnectionString.UDL" ; the '\' character is an escape character in strings and needs to be specified twice.
It's time for a new signature.
|
|
|
|
|
Yes... Unfortunately this was clear.. I have tried:
"File Name=C:\\Conn.udl;"
"File=C:\\Conn.udl;"
It's not working...
TuxOnHumax Team
|
|
|
|
|
Maybe you could post your complete connection string and also the initialisation code that uses the string.
It's time for a new signature.
|
|
|
|
|
<br />
CString sql_string;<br />
CDatabase db;<br />
<br />
sql_string.Format(_T("File Name=C:\\ETG.udl;"));<br />
db.OpenEx(sql_string);<br />
It's easy! Nothing of strage, but it's not working!!
Any ideas??
I don't would to use ADO...
TuxOnHumax Team
|
|
|
|
|
Undici77 wrote: It's easy! Nothing of strage, but it's not working!!
Any ideas??
Not really; what is not working? Do you get an error message, exception, crash etc? Are you sure the contents of your udl file are valid? This is like drawing teeth!
It's time for a new signature.
|
|
|
|
|
My UDL file I think is ok (I can open it, and cliccking on the Test Connection Button) I get the the "OK" Message.
When I execute the code posted up, I get the dialog that ask me the database connections parameters, and if I try to disable it I get the Exception
"Data source name not found and no default driver specified"
So... I don't know exactly where is the problem... I'm little desperate.
TuxOnHumax Team
|
|
|
|
|
I'm not an expert on this but I have been looking at the documentation, and I cannot see an example of using a UDL file with CDataBase , so I'm not certain it is supported. My only suggestion now is to post this in the General Database forum to see if anyone can help there. Don't forget to post the contents of your UDL file also.
It's time for a new signature.
|
|
|
|
|
OK.. May be the problem is this.. I need to use OLE DB and not odbc... this is my udl file:
[oledb]
; Everything after this line is an OLE DB initstring
Provider=SQLOLEDB.1;Password=aaa;Persist Security Info=True;User ID=aaa;Initial Catalog=TABLE;Data Source=192.16.0.10,1433
TuxOnHumax Team
|
|
|
|
|
i want to make an .exe which resides in any system's folder and on a specefic date and time it get active and delete all files in that specefic folder.
|
|
|
|
|
Wow!!! Sounds like a typical virus attack.
|
|
|
|
|
can u help me in tht...actualy its not particularly a virus....i want it to be useful for me to manage my data in my work...i want to discard the files after a certain time when here are no more needed. i want it in .exe form or any other.
|
|
|
|
|
As David said, I would recommend a scheduled task.
Take a look at the ITaskScheduler[^] interface for starters.
|
|
|
|
|
rather you can do like this.
1.write an exe, that reads the foldername and the date/time on which it has to be deleted, from a text file.
2.on execution, the exe reads a text file, that contains a lookup of the folder names and dates.
3.if the current time is beyond the time specified in the file, then delete the files from that folder.
4.now you can place this exe(shortcut) in the startup.
5.also you can write your exe in such a way that, it loops the above code once in an hour.
--------------------------------------------
Suggestion to the members:
Please prefix your main thread subject with [SOLVED] if it is solved.
thanks.
chandu.
|
|
|
|