|
Florin Ochiana wrote:
I am using the Visual Studio Installer which comes with Visual Studio 7.0.
i never worked on that,if you don't find any option for registrying DLL there, you can opt for ShellExecute One.
Anyway i visited you company WebPAge,Hard Luck ,it under construction
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Yeah, as it usually happens we don't have any time left for our page because of the work we have to do for our clients.
-----
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
|
|
|
|
|
Florin Ochiana wrote:
Yeah, as it usually happens we don't have any time left for our page because of the work we have to do for our clients.
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
THX. !!
I knew it was just a stupid failure... but was not able to find on web and my book... !!!
|
|
|
|
|
Dear friendz....
i would like to know hoe i can change the color of the frame of a picture control placed on a dialog box when a certain event(say onmousemove())takes place??
all suggestionz are welcome.....
thanx in advance...
|
|
|
|
|
plz help!!!!!
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR1 );
SetCursor( hIcon );
return TRUE;
is a working code coz i have put this in my Dialog based application (Xyz) in a class called CXyzDlg..... that is, i have already added this function "OnSetCursor()".....and the cursor changes......in the main Dlg box but..... i have derived a class from the CStatic Class named it as "CMyClass".....and i have created obcts of it in the CXyzDlg class.....basically these objects i have created by placing the "static control" on the dialog box and then..... thru the class wizard created an object linking it with the picture control of type CMyClass(that is .....SUBCLASSING).....
also in thiz CMyClass i have added the "OnSetCursor()" function as well......and many other mouse functions like "onmousemove()","LbuttonDown()".....etc.....but here when i put in the same code as i had put in the main Dlg box for the "OnsetCursor()".....it does not change!!!!!......y???
heres the code......that i have put in the derived class CMyClass......
#include "stdafx.h"
#include "creamz.h"
#include "MyClass.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CMyClass::CMyClass()
{
m_DragOn1=FALSE;
m_pot1=0;
m_update=TRUE;
}
CMyClass::~CMyClass()
{
}
BEGIN_MESSAGE_MAP(CMyClass, CStatic)
ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
ON_WM_MOUSEMOVE()
ON_WM_SETCURSOR()
END_MESSAGE_MAP()
void CMyClass::OnLButtonDown(UINT nFlags, CPoint point)
{
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR2 );
SetCursor( hIcon );
m_DragOn1=TRUE;
CStatic::OnLButtonDown(nFlags, point);
}
void CMyClass::OnLButtonUp(UINT nFlags, CPoint point)
{
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR1 );
SetCursor( hIcon );
m_DragOn1=FALSE;
CStatic::OnLButtonUp(nFlags, point);
}
void CMyClass::onmousemove(UINT nFlags, CPoint point)
{
if(m_DragOn1==TRUE)
{
if(m_pot1<62)
m_pot1+=1;
else
m_pot1=0;
if(m_pot1%2==0)
m_update=TRUE;
}
CStatic::onmousemove(nFlags, point);
}
BOOL CMyClass::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
if(m_DragOn1==FALSE)
{
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR1 );
SetCursor( hIcon );
}
else
{
HICON hIcon = AfxGetApp()->LoadCursor( IDC_CURSOR2 );
SetCursor( hIcon );
}
return TRUE;
}
plz help me out......
thanx in advance.....and thanx for ur intrest!!!!!
|
|
|
|
|
I have a dialogbox application with 4 checkbox and one button.
the checkboxes have variables of type BOOL (m_check1. m_check2...)
When I click the button, how can I detect what check boxes were selected?
Any help will be greatly appreciated
|
|
|
|
|
in the OnButton() function.....just add the command......
UpdateData(TRUE);
this command will update all the vaues(m_check1,m_check2.....etc) of the checkboxes made by the user on Dialogbox.....
after this u can use the
if( m_check1==TRUE)//OR SOMETHING LIKE THAT
hope that helpz....
cheerz.....
|
|
|
|
|
if(m_check1.GetCheck()==1){
//active when m_check1 is check
}
else if(m_check1.GetCheck()==0){
//active when m_check1 is uncheck
}
|
|
|
|
|
Buddy,There are two way to detect that.
firs--t Create a Event handller for each CheckBox
or
Group all the Check Boxes and Give a First Checkbox(determine it with tab order)a integer ,and this integer value determine which check box is selected (0 - first,1 for second and so on).
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
hi all,
I want to get Driver Names of the harddisk .Can u tell me how to do that using C++?
Thanks in advance.
|
|
|
|
|
pubududilena wrote:
Driver Names of the harddisk
Whats That,WHta do u want Drives names of hardisk or something else
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
hi,
..Sorry for my mistake..I want to get names of Drives of the Hard Disk.
Suppose that my computer has 3 Drives namelly Drive C:,Drive D:,Drive E:
So I want to get no of Drives in the Hard and names of Drives..
thanks in advance
|
|
|
|
|
|
Hi
I tried to do it for getting name of the current driver that the program is running and to show how much free_space in Bytes left
Check this code I think it will help you ..(_getdrive)
You can delete what ever you don't need
/*---------Function Current_Disk_Freespace---------------*/
/*The Function print the free space of the current disk */
/*Input- none. */
/*Output-Don't return a value
/* just print the Value in Mega-Bytes */
/*need to be included*/
#include <windows.h>
#include <direct.h>
#include <stdio.h>
#include <tchar.h>
#include <iostream>
using std::cout;
#include<iomanip>
using std::setprecision;
/**********************/
void free_space_message()
{
struct _diskfree_t df = {0};
unsigned uErr,uDrive,current_drive;
double result=0;
char Letter=0;
for (uDrive=1; uDrive<=26; ++uDrive)
{
current_drive = _getdrive();
//check for the current disk that is working
if (current_drive==uDrive)
{
uErr = _getdiskfree(uDrive, &df);
Letter = uDrive + 'A' - 1;
//Calculate the value to Mega-Bytes
result=double(df.avail_clusters)/(1024*1024)*double(df.sectors_per_cluster*df.bytes_per_sector);
printf("%c:",Letter);
cout.precision(0);
cout<
|
|
|
|
|
Hi,guys:
I got a serious error when developing a DLL for my teammates' DELPHI application. Any help is appreciated.
Environment: Windows2000 AS, VC++6.0SP5.
Related code:
typedef struct _tag_MyPackage
{
int len;
char *data;
}MyPackage;
When I got some data,
MyPackage *mp = new MyPackage;
mp->data = new char[length of the data]
memcpy(mp->data, ...);
EnterCriticalSection(&m_cs);
mylist.pushback(mp);
LeaveCriticalSection(&m_cs);
When something happens, below code is executed in another thread,
EnterCriticalSection(&m_cs);
iterator = mylist.begin();
MyPackage *mp = *iterator;
memcpy(A_Pointer_Defined_Before, mp->data, mp->len);
if (mp != NULL && mp->data != NULL)
{
delete [](mp->data);
delete mp;
}
mylist.erase(iterator);
LeaveCriticalSection(&m_cs);
return;
My program runs prefectly in much time, but, in some condition it fails at this line.
delete [](mp->data);
The error message:
Program:\work\myapp\test.exe
File: dbgheap.c
Line:1044
Expression: _CrtIsValidHeapPointer(pUserData)
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
And I also found it fails only when the length of data is a bit long, say, 220000bytes. Some other short length such as 100bytes/1000bytes/50000bytes are all successfully performed.
Thanks for your patience and any replies.
|
|
|
|
|
how to hide my computer in LAN, another user can't browse.
thanks
Nho'c Ti`
|
|
|
|
|
don7cry wrote:
how to hide my computer in LAN, another user can't browse.
Disable File & Printer Sharing.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
if do that with your idea,use could browsing my computer with empty folder
I want nobody can't show my comp in browse of Explorer
Nho'c Ti`
|
|
|
|
|
Unplug your network cable
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
First of all Password protect you PC then disable any folder you are sharing on network and disable remote access to you computer in My Computer>Properties.Enable Windows firewall.Use some other firewall.
|
|
|
|
|
forgot one thing
Look in administrative tools and from there Security policy something like that i dont remember exactly and remove all users except you,System,Administrators from the list of those who can access your system.And dont remove yourself otherwise you will not be able to access your drive.
|
|
|
|
|
I want to do something when the audio device is recoding.
How to detect the beginning and end of recoding?
Does Windows post a notification message or event?
Jesa
|
|
|
|
|
|
The WIM_OPEN and WIM_CLOSE message will not broadcast to all application.
I want to know that other application is using audio device to record.
But WIM_OPEN and WIN_CLOSE message seem to be use for CALLBACK function, doesn't it?
Will Windows post a message to notify all applications when audio device is recording?
Jesa
|
|
|
|