|
I suspected it was very urgent, indeed.
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
|
|
|
|
|
Where is the urgent icon when we need.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
How to enable the tool which show class members of current scope in list box( in a opened file). How to customize(bring) that.
|
|
|
|
|
If i understand correctly, In VS2005, press (ctrl + j) or [Menu]Edit->Intellisense->"List Members" to bring up the list box of Class Members in the current scope.
you can also complete word (ctrl + space)/(alt + right arrow) to complete the word that displays list of members if the left identifier is a struct/class.
|
|
|
|
|
Thanks for replying soon. But i think you are not clear with my question.
The thing is to bring the class member list box which displayed at the top of editor window.
When you select a method from that listbox, the control(cursor) will goto that method of the currently opened file. Hope i am clear.
|
|
|
|
|
That is not listbox, That is combo box, by default it is enabled and visible. who hide it. That is called "Navigation Bar". In VS2005 (you still not specified which editor even i assumed once in previous reply), [MENU]Tools->Options->Text Editor->[All Languages/any specific language] and in the right pane you can see "Display" group there check the "Navigation Bar"
|
|
|
|
|
Yes i got it now.
Frankly telling i couldn't describe the tool exactly. But however you have done a great help to me sir. Thank you.
|
|
|
|
|
I need to do a simple HTTP POST from a c++ application.
The aim is to upload data to my webservice.
If someone could please give me a small sample program, or just point me in the direction of a decent library that i could use, it would be greatly appreciated.
|
|
|
|
|
Refer to the following links:
Libcurl[^]
Curlupp[^] (Based on libcurl)
Comparison of libcurl with other libraries: [^]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
modified on Wednesday, May 21, 2008 5:19 AM
|
|
|
|
|
curl is perfect, thank you
|
|
|
|
|
Could have directed you to Soap tollkit 3.0[^], but it is deprecated recently. Probably, you need to use .net.
Or can still use Soap toolkit, without support.
|
|
|
|
|
Hi All,
I basically use this to load/display a .jpg file.
if (OleLoadPicture(pStream,dwSize,FALSE,IID_IPicture,
reinterpret_cast<LPVOID *>(&m_pPicture)) != S_OK)
{
pStream->Release();
return 10;
};
pStream->Release();
This code is working fine for most of the files with all the .jpg files with RGB Color mode.
But for a .jpg file created with CMYK(Cyan, Magenta, Yellow, KeyColor-Black) color mode, I am not able to open the file, I get the error "E_NOINTERFACE - The object does not support the interface specified in riid(IID_IPicture in the function)." - Unable to get the image interface.
Kindly help!
Thanks.
Priya Sundar
|
|
|
|
|
Hi Friends,
I am using .NET component in VC 6.0 MFC application.
I created tlb file for .NET using RegAsm.exe and importing it in my MFC application.
(I referred this link http://support.microsoft.com/kb/828736).
Its working fine in my system.But the problem is it wont work on other systems.
I installed VC++ 6.0 & VS 2005 (.Net Framework)both on my system.
But other systems are only installed with VC++ 6.0.
Is it necessary to install .Net framework, If yes what all to install, which version?
Please help me..
Reagards
Shiva
|
|
|
|
|
When I wrote:
Bitmap *p=new Bitmap(w,h);
In debug mode, it reports an error(VC9):
error C2660: 'Gdiplus::GdiplusBase::operator new' : function does not take 3 arguments
Though, I've include mygdiplus.h instead of gdiplus.h .
Here is the content of mygdiplus.h (copied from msdn), what's the problem?
#ifndef _MY_GDIPLUS_H_
#define _MY_GDIPLUS_H_
#define iterator _iterator
#ifdef _DEBUG
namespace Gdiplus
{
namespace DllExports
{
#include <GdiplusMem.h>
};
#ifndef _GDIPLUSBASE_H
#define _GDIPLUSBASE_H
class GdiplusBase
{
public:
void (operator delete)(void* in_pVoid)
{
DllExports::GdipFree(in_pVoid);
}
void* (operator new)(size_t in_size)
{
return DllExports::GdipAlloc(in_size);
}
void (operator delete[])(void* in_pVoid)
{
DllExports::GdipFree(in_pVoid);
}
void* (operator new[])(size_t in_size)
{
return DllExports::GdipAlloc(in_size);
}
void * (operator new)(size_t nSize, LPCSTR lpszFileName, int nLine)
{
return DllExports::GdipAlloc(nSize);
}
void operator delete(void* p, LPCSTR lpszFileName, int nLine)
{
DllExports::GdipFree(p);
}
};
#endif // #ifndef _GDIPLUSBASE_H
}
#endif // #ifdef _DEBUG
#include <gdiplus.h>
#undef iterator
#endif
modified on Wednesday, May 21, 2008 2:48 AM
|
|
|
|
|
See here[^]. BTW, took me 5 seconds to find it with google
|
|
|
|
|
I've followed the advice, but still error in VC9 project.
I've tested using #pragma message , and found that the code after
#ifndef _GDIPLUSBASE_H<br />
#define _GDIPLUSBASE_H
doesn't compile.
I include mygdiplus.h before some other header files, now it works.
modified on Wednesday, May 21, 2008 3:12 AM
|
|
|
|
|
check whether somewhere (may be in " stdafx.h ") <gdiplus.h> is included before "mygdiplus.h".
|
|
|
|
|
No gdiplus.h in stdafx.h , I think it may be included by some header file.
|
|
|
|
|
well, I said may be in stdafx.h, seems you solved now, but then in your previous post you said it didn't work if you include above some other header files.
|
|
|
|
|
|
hai all,
I wrote an application that do some schedule task creation, It works smooth in XP machine, It does not create schedule task in vista,but that i solved by adding the manifest file... My new problem is my application is blocked when it invoked at startup(login or reboot time)...
Pleaser help me if u have any idea ..
Thanks
|
|
|
|
|
After migarating the project to VC9.0, I forgot to initializie for Gdiplus.
====================
CCoolTower::CCoolTower(UINT nIDBmp)
: m_bmp(AfxGetInstanceHandle(),MAKEINTRESOURCEW(nIDBmp))
{
m_rtDev.Width=m_bmp.GetWidth();
m_rtDev.Height=m_bmp.GetHeight();
}
modified on Wednesday, May 21, 2008 4:59 AM
|
|
|
|
|
followait wrote: m_bmp(AfxGetInstanceHandle(),MAKEINTRESOURCEW(nIDBmp))
check why loading of bitmap failed, might not be the constructor issue. move the m_bmp creation statement to normal function (not constructor) and verify why it is failed check the error value. And as a side note, use MAKEINTRESOURCE inplace of MAKEINTRESOURCEW.
|
|
|
|
|
MAKEINTRESOURCE not work, the constructor:
Bitmap(HINSTANCE hInstance,const WCHAR *bitmapName);
In VC6.0 the code;
Bitmap *p=new Bitmap(AfxGetInstanceHandle(),MAKEINTRESOURCEW(nIDBmp));
works fine.
modified on Wednesday, May 21, 2008 3:24 AM
|
|
|
|
|
ok, that's correct, but what about checking the status, Image::GetLastStatus.
|
|
|
|