|
iges,a usual model in 3D CAD.
I want to show it in my Dialog.
Thanks.
===========================
http://blog.csdn.net/begtostudy
MSN/email:begtostudy@gmail.com
|
|
|
|
|
Have you seen this [^]?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks.
opencascade
===========================
http://blog.csdn.net/begtostudy
MSN/email:begtostudy@gmail.com
|
|
|
|
|
Hello all,
I'm a new member in code project group, so I would be appreciated if someone could help me.
I'm looking for a code written by visual fortran or C (fortran is more recommended) about plain strain analysis of a cracked domain.
I look forward your help.
Thanks in anticipation.
Best regards,
Ramin O
|
|
|
|
|
Hello, see [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
HI Experts,
How to Add Move Up and Move Down functionality to My CListCtrl.
Thanks,
Krishna.
|
|
|
|
|
Royaltvk wrote: How to Add Move Up and Move Down functionality to My CListCtrl
What do you mean with that? Do you want to change the order of the items?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
ya , i want to change the order.
Thanks for concern
|
|
|
|
|
|
isn't this a bit overkill ? or maybe I'm mis-understand you point,
Me think it's easier to just swap items in the "data source" and refresh the list (if in "virtual mode" than it should not be any problem performance wise.
This signature was proudly tested on animals.
|
|
|
|
|
You can delete and refill the whole content or the changed items.
Or: they should originally be sorted and than change the index. This leads to costum sort
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Maybe you mean drag and drop? Click an item, drag to a new position, and drop?
If that's the case, there are several articles about it on CodeProject, as well as a mountain of examples and tutorials elsewhere on the net.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
To move an item up:
Call GetNextItem(-1, LVNI_SELECTED) to get the item's index.
Call GetItemText() to get the item's text.
Call InsertItem(nIndex - 1, text) to insert the item in the previous position.
Call DeleteItem(nIndex + 1) to delete the old item
You'll obviously need to massage this a bit to get it to work (e.g., make sure that you don't try and move item 0 up). Moving an item down is almost identical.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"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
|
|
|
|
|
SQL statment is
"SELECT COUNT(*) FROM [User]"
[User] is a table name, which contains handreds of records.
then I use CRecordset.Open(...) to execute the statment.
but CRecordset.GetRecordCount() function returns 1 always.
I think it is not a good way to go throught all records by CRecordset.MoveNext() - it is too slow.
how to get number of records in the table by SQL directly?
1) is CRecordset right class to execute the SQL?
2) is the SQL statment correct?
thanks for any help.
|
|
|
|
|
includeh10 wrote: but CRecordset.GetRecordCount() function returns 1 always.
That's obvious: your query asks for exactly 1 record, containing 1 field: the number of records.
The value you're searching maybe obtained using CRecordset::GetFieldValue method [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
includeh10 wrote: CRecordset.GetRecordCount()
For that function to give you the result you want, you'd have to use the SQL query "SELECT * FROM User". But don't do that - let the database engine do the maths and return the result as a single-field, single-row recordset, and read the result from that value, as CPallini said.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
|
Have you thought of using IMAPI[^]?
There's a CP article[^] that details how to add lists of files and directories to the image. It's in C#, but really, how difficult could it be to convert that article to C++? To be honest, the IMAPI stuff is probably easier from C++ than C# - the article uses interop to access IMAPI...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Hello everybody,
im creating a picture control in a dialog box (win 32), i need to show an image in that control, but my bitmap is of 30 X 30 size, but the control is 100 X 100, i would like to stretch the image upto 80 X 80, so that picture control is filled with the same image.
Thanks in advance,
A. Gopinath.
|
|
|
|
|
You may use my DLL [^], if you need to stretch it without loosing too much quality.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thank you very much. this will be useful for me
|
|
|
|
|
I usually specify the required size in the LoadImage API in its cxDesired and cyDesired parameters.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
CStatic* pContol = (CStatic *) GetDlgItem(IDC_ST_PICTUREBOX);
pControl->ShowWindow(SW_MAXIMIZE);
|
|
|
|
|
is this possible?
I launch a process from my main process and when the second process attempts to use DLLs that the first is using, the second program crashes. However, when I click the icon for the second application while the first application is running, it accesses these DLLs just fine. I have used CreateProcess and ShellExecute to launch and both provide the same outcome. If CreateProcessAsUser is the solution, will it work for creating the process as the same user who launched the first process?
|
|
|
|
|
The answer is yes for your question.
But I geuss it is not the solution for your situation.
Is the platform vista? If is that so, some issues are around UAC...
Is it the fact the reason of crash that is origined from some of security context errors?
|
|
|
|