|
Hi,
How can I do it without DirectX in VC++ 6.0?
Best Regards,
Aniket
|
|
|
|
|
well see mci functions
whitesky
|
|
|
|
|
Hi,
Using mci, will be possible to play any Audio File (mp3,wav,mid,wma,..etc) & also to control the volume?
Plz, explain how to use mci function.
Best Regards,
Aniket
-- modified at 5:05 Monday 22nd May, 2006
|
|
|
|
|
i use for play mp3 wav and... maybe Here[^]
whitesky
|
|
|
|
|
when i execute my programe,
a dialogue box will appear with the title F32x_FileTransfer.
at the Open File row, when i click Browse, another dialogue box will appear with the title Open.
in this dialogue, i can select the file that i want to Open.
after selecting the file, click the Open button to get the path name.
the path name will be taken to the first dialogue box title F32x_FileTransfer..
at the first row, when i click on the Open File button, the file that i selected at dialogue box title Open will be opened..
that is the sequence that i want the program to do..
but somehow i couldnt get things right..
thanks for the attention to this message.
your help will be very much appreciated..
not clear about the question ask, you may contact me at confusegirl85@hotmail.com
-DarkangeL-
|
|
|
|
|
Your question is not clear so I will make some assumptions here.
chubbie wrote: at the Open File row, when i click Browse, another dialogue box will appear with the title Open.
in this dialogue, i can select the file that i want to Open.
I am assuming you are using the windows "Open File" dialog either through MFC's CFileDialog class or the GetOpenFileName() API.
chubbie wrote: after selecting the file, click the Open button to get the path name.
the path name will be taken to the first dialogue box title F32x_FileTransfer..
at the first row, when i click on the Open File button, the file that i selected at dialogue box title Open will be opened..
You can use CFileDialog 's GetPathName() member function to get the full path to the file selected. If you are using the GetOpenFileName() API the the file is in the lpstrFile member of the OPENFILENAME structure
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
I want to create a project with VC++ , when This program Runs my bmp image opens and with closing picture program closes too. (my bmp image created before and now is in first directory of project ) .
tnks
|
|
|
|
|
Do you need to create bmp or load bmp?
whitesky
|
|
|
|
|
I have created my picture in paint (or other graphic soft ware) then I want to load my picture in my project.
tnks
|
|
|
|
|
well if your picture is (jpeg/gif/bmp...) you can use CImage class if your picture is only bmp you can use LoadImage :
-------------
LoadImage(AfxGetInstanceHandle(),filename,
IMAGE_BITMAP, 0, 0, LR_DEFAULTSIZE|LR_CREATEDIBSECTION)
----------
CImage m_Image;
m_Image.Load(FileName);
whitesky
|
|
|
|
|
I want to draw a red line,but it does not show.Why?
As below is a part of source code.
I must use D3DFVF_XYZRHW,becuase I use in 2D.
typedef struct {
FLOAT x, y, z; // 2-D coordinates
FLOAT rhw; // rhw
DWORD color; // The vertex color
} sVertexSelect;
#define VERTEXFVF_SELECT (D3DFVF_XYZRHW|D3DFVF_DIFFUSE)
IDirect3DVertexBuffer9 *m_pVB_SelectRect;
void CAppDraw::DrawSelectLine()
{
BYTE *Ptr;
COLORREF crRed=RGB(255,0,0);
sVertexSelect Verts_Select[2]=
{
{1.0f,1.0f,1.0f,1.0f,crRed},
{1.0f,100.0f,1.0f,1.0f,crRed},
};
m_pVB_SelectRect->Lock(0,0, (void**)&Ptr, 0);
memcpy(Ptr, Verts_Select, sizeof(Verts_Select));
m_pVB_SelectRect->Unlock();
m_pD3DDevice->SetTexture(0, NULL);
m_pD3DDevice->SetStreamSource( 0, m_pVB_SelectRect,0, sizeof(sVertexSelect) );
m_pD3DDevice->SetFVF( VERTEXFVF_SELECT );
m_pD3DDevice->DrawPrimitive( D3DPT_LINELIST, 0, 1 );
}
BOOL CAppDraw::DoFrame()
{
// Clear device backbuffer
m_pD3DDevice->Clear(0, NULL, D3DCLEAR_TARGET, D3DCOLOR_RGBA(0,64,128,255), 1.0f, 0);
// Begin scene
if(SUCCEEDED(m_pD3DDevice->BeginScene()))
{
DrawSelectLine();
// End the scene
m_pD3DDevice->EndScene();
}
// Display the scene
m_pD3DDevice->Present(NULL, NULL, NULL, NULL);
return TRUE;
}
|
|
|
|
|
Hi All,
i have to draw a gradient rect On painting a control.
there is is two options infront of me...
1. Always draw the background using GradientFill API
2. create a Memory BITMAP and draw it using BitBlt instead of calling "gardientfill" api
could suggest best from this.
ThanX
SaRath
|
|
|
|
|
Having the background image already drawn on a memory bitmap and doing a BitBlt to the screen is always faster then recalculating and redrawing the background image from scratch.
Using a memory bitmap is a technigue known as "double buffering" and is used as a way to eliminate the screen flickering you get if you do much drawning directly onto the screen. Do a search for "double buffer" here on CP for some very good articles on the subject.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Thanks for your reply.
but how this become dubble buffering?
Because im just storing the bitmap and drawing it when needed?
SaRath
|
|
|
|
|
Hi,
How to retrieve all the file and directory names in a given directory.
I do not need Win32 API functions but a C/C++ function.
(it is supposed that the function will work in UNIX too).
Thanks in advance
--
======
Arman
|
|
|
|
|
files and directories are parts of the OS file system, so they are implemented differently depending you are on a Windows using FAT, FAT32, NTFS, or UNIX/Linux or even mac...
you cannot do this by a general function.
moreover, a program compiled for windows won't work under unix and vice versa. i thing you meant instead that the function would "compile" under both windows and unix compilers.
for windows OS, i can advise you this good article : SADirRead[^] by Chris Losinger.
for unix world, i don't know at all if some classes are already implement that way (it certainly does though), so i can't point you for a unix solution.
TOXCCT >>> GEII power
[VisualCalc 3.0 updated ][Flags Beginner's Guide new! ]
|
|
|
|
|
Arman Z. Sahakyan wrote: How to retrieve ll the file and directory names in a given directory. I do not need Win32 API functions but a C/C++ function. (it is supposed that the function will work in UNIX too).
Try this POSIX wrappers for Win32 directory functions[^].
|
|
|
|
|
Try Googling for unix findfirst findnext .
This will give you a bunch of possible solutions for Unix equivalents to the dos findfirst / findnext functions.
|
|
|
|
|
I have created a help file for the application i have developed. The help file was created using help workshop in visual studio. i used the following code to call the help file in my application
ShellExecute(NULL, "open", "C:\\Documents and Settings\\Pradeep.DEEPA\\Desktop\\DesktopSearch\\hlp\\HELP.hlp", NULL, NULL, SW_SHOWNORMAL);
the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive
|
|
|
|
|
you can put the help file into the same directory of the application file,then you can use some api such as GetModuleFileName to get the path of application file.now you can get the directory of the help file by parsing the path of application file simply.
|
|
|
|
|
sudeep_br wrote: the problem with this code is that if i install the application in some other drives or folders it wont work coz i have specified the path for the help file in the code itself. can anyone tell me how this can be changed so that help file works even if the application is installed in different folders or drive
You can put your file in the directory where you put youe executable and specifiy the path as ".\\HELP.hlp"
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
|
|
Hey folks,
I'm using C++ & MFC (no .NET).
I need to accomplish the following, and I really don't know how to go about any of it. If you know of links/ways to do it
1) Go grab an XML file on the server, and download it, saving it to disk (if necessary) or justu loading it into memory.
2) Parse the xml files and figure out the URIs that exist
3) Go to each URI and then download *all* content viewable on the webpage (images, etc...) so offline viewing is enabled.
4) Be able to send XML log files back to the server
5) I can catch all this stuff on the web site, these are more about C++ & Windows development.
Thanks very much in advance!
|
|
|
|
|
|