|
Sorry, if this seems like a stupid question, but I simple cannot figure out how to run macros in VS.Net 2003.
I have pasted some macro functions into the MyMacro module, but when I try to assign a key to the macro only the predefined macros in the Samples module appear in the listbox.
Any help is much appreciated.
|
|
|
|
|
Can u pls help me out with code in VC++.
I have got a bitstream/ compressed form of audio in a file "compresed.bts" by passing the Audio wav file through some graph filters in DirectShow.
Precisely I have used GSM 6.10 Encoder as a filter. Now how do I decode this Bitstream back to the original wav file. Please help !!!
Do I have to use decode filter in the playback graph but I do not know how to get the GSM 6.10 decoder filter.
Pls help....
|
|
|
|
|
hi,
my project is using some third party controls(crystal reports) i need to know what are all the dll depends on the project. any one help to me.
thanks in advance.
|
|
|
|
|
Use the Dependency Checker utility that ships with Visual Studio.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
There is concept of CODEPAGE in VC++. How I can use this feature, if I want to make my application in a language like Greek or Gujarati? I need more help on the CodePage property. How we can use it or define it in our applicaiton?
Gaurang Shah
|
|
|
|
|
Hi everybody!
Do someone know how to compare sequence number for packets I recieve? I will check if there is a packet missing when I recieve mpeg-2 packets.
Thankful for your help,
|
|
|
|
|
I want to access database which is in MY SQL on Linux machine from my "C" prgram without creating DSN. For that i have used function SQLDriverConnect as follows.
#define MAXBUFLEN 255
SQLHENV hEnv = SQL_NULL_HENV;
SQLHDBC hDBC = SQL_NULL_HDBC;
SQLHSTMT hStmt = SQL_NULL_HSTMT;
SQLCHAR ConnStrIn[MAXBUFLEN] =
"DRIVER={MYSQL ODBC 3.51 driver};SERVER=192.168.1.60;"
"UID=mWD=m;DATABASE=ftp;";
SQLCHAR ConnStrOut[MAXBUFLEN];
SQLSMALLINT cbConnStrOut = 0;
RETCODE retcode; // Return code
retcode = SQLDriverConnect(hDBC,// Connection handle
NULL, // Window handle
ConnStrIn, // Input connect string
SQL_NTS, // Null-terminated string
ConnStrOut, // Address of output buffer
MAXBUFLEN, // Size of output buffer
&cbConnStrOut,// Address of output length
SQL_DRIVER_NOPROMPT);
It returns SQL_ERROR.
Can you please suggest me where i am going wrong. I think it is in the "ConnStrIn".
|
|
|
|
|
I have a dialog with some buttons and MFC GridCtrl's. When the focus is on the last cell of the grid and the tab key is pressed, I want to set the focus to the next control. How do you do this?
I have played around with the GetDlgCode() etc. but haven't really been able to get this working.
|
|
|
|
|
Have you tried SetFocus() ????
Best Wishes,
ez_way
|
|
|
|
|
I think I haven't explained myself correctly. What I need to know is where to catch the tab key and set the focus to the next control. Normally (e.g. with buttons etc.) the dialog seems to handle this.
|
|
|
|
|
Hi Brian
Please don't yell for a stupid idea but the tab order you set with CTRL+D shows the tabs,... yes?
Well with that in mind can you not set focus whereever you wish?
I know this is really not a great answer but it worked for me in a tabbed prj.
Best Wishes,
ez_way
|
|
|
|
|
Martin,
thanks for your reply, but that will not work for me as my controls are dynamically created.
|
|
|
|
|
Oh yes, one more thing
when you set the focus please make sure to note the overload function.
SetFocus(GetDlgItem(hDial, ID_VERT_RES));
Best Wishes,
ez_way
|
|
|
|
|
Yes sure but what about using TRY/CATCH to do the validation?
Best Wishes,
ez_way
|
|
|
|
|
|
Validating control contents when switching focus from one control to the next is done by handling the EN_KILLFOCUS notification sent by the edit control that is losing focus.
You could trap TRY/CATCH this and send it along the way in a altered state!
Best Wishes,
ez_way
|
|
|
|
|
So here is the deal! This app looks for virus infected files system wide. I don't understand MFC at all so please help me. I am sure it is a logic error but I don't know enogh MFC to fix.
The code hit the first listing of an infected file maked YES in the list and then does not delete all the entries that are not infected.
long nCnt = m_List.GetItemCount();
long lcounter = 0;
CString tmp;
for(long i = 0;i<=nCnt;i++)
{
if(m_List.GetItemText(0,1) != "YES"){
m_List.DeleteItem(lcounter);
}else{
lcounter++;
tmp.Format("%d",lcounter);
AfxMessageBox(tmp);
}
}
Best Wishes,
ez_way
|
|
|
|
|
When you delete an item, all the following items move up
I would code the algorithm something like this:
int nCnt = m_list.GetItemCount();
for (int i = 0 ; i < nCnt ; i++)
{
if (m_list.GetItemText(i, 1) != "YES")
{
m_list.DeleteItem(i);
i--; move back as we just deleted one
nCnt--;
}
}
Roger Allen
Sonork 100.10016
Death come early, death come late,
It takes us all, there is no reason.
For every purpose under heaven,
To each a turn, to each a season.
A time to weep and a time to sigh,
A time to laugh and a time to cry,
A time to be born and a time to die.
Dust to dust and ashes to ashes,
And so I end my song.
|
|
|
|
|
I'm not entirely sure what you are trying to do, from your explanation.
However, you're
GetItemText(0,1)
and
DeleteItem(lcounter)
are working on different numbers?
If you want to delete items from a list control, bear in mind that removing items from the beginning of a list will then change the indices. I've always found it easier to iterate a list, build up a reverse ordered list then delete in reverse order from the end of the list: this doesn't affect the (lower) indices of the listctrl, so the manipulations are valid.
Debbie
|
|
|
|
|
Hi,
I'm still working on my calendar with scheduled events.
Now I know I can run a function for example every (1) second with a timer (1000ms), but what if i exactly want it to run with my PC... with my Windows-clock that's what I mean.
(And NOT a timer with an interval of 10 ms or something)
I know Windows isn't that accurate with timing, but I mean that when I double-click the time in the system-tray you can see the seconds tick away and when a minute passes, I want the timer to run exactly that way.
And then the question is... if it does runs exactly that way *in sync* ...does it stay or gets asynchronous..?
Roland.
|
|
|
|
|
hi:
I want to limite users' function who are not in the group of administrator by setting in registry.but now ,I just can set the parameter of current user in system since I can find its key in HKEY_CURRENT-USER.I should how to find other users's key in program,please give me suggestion or samples
thank you for reply!!!
Happy Gemini
|
|
|
|
|
w_yufeng wrote:
I want to limite users' function who are not in the group of administrator
To check whether a user is in a given local/network group, try NetUserGetLocalGroups() or NetUserGetGroups() .
I'm not sure I totally understand the latter part of your request.
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Maybe my represantation is not clear.I just want to limit users' function in the same computer other than in network .
Happy Gemini
|
|
|
|
|
w_yufeng wrote:
I just want to limit users' function...
...based on whether they are part of the administrator group or not. Is that correct?
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|
|
Say a list has 500 items in it.
int nCnt = m_List.GetItemCount();
for(int i = 0;i<=nCnt;i++)
m_List.DeleteItem(i);
Why does this not work! Should I increment by 2's?
Best Wishes,
ez_way
|
|
|
|