|
See here[^] for DIALOGEX resource statements, and here[^] for programming guides.
|
|
|
|
|
Please Leave A Sample Source code project if possible with description I'm new comer for VC++
Thank you for your reply 
|
|
|
|
|
Sorry but you will have to find your own. If you are using Visual Studio or Visual C++ Express[^] to create your projects you can use the template in the new project wizard to generate a Dialog project and work from there. You can also find lots of samples in the Articles[^] section.
|
|
|
|
|
Hi, Iam using VC++ 2010. While I want to get the MdiParent-Forms Instance, its giving the error, Really I can't identify my mistake...
My Codes from MdiParent
=======================
#include "For_Student_Detials"
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
For_Student_Detials^ MyStudentDet= For_Student_Detials::GetForm(true,this);
MyStudentDet->MdiParent=this;
MyStudentDet->FormBorderStyle=System::Windows::Forms::FormBorderStyle::None;
MyStudentDet->Dock=DockStyle::Fill;
MyStudentDet->Show();
}
My Codes From MdiChild // CFIS_Main is my Mdi-Container
=========================================================
#any Include Reqd?????
public: static For_Student_Details^ For_Student_Details::_instance = nullptr;
public: static For_Student_Details^ For_Student_Details::GetForm(bool^ IsMDIChild, CFIS_Main^ MyInstFrm) {
if (_instance == nullptr)
_instance = gcnew For_Student_Details();
if (_instance->IsDisposed)
_instance = gcnew For_Student_Details();
if (IsMDIChild)
_instance->MdiParent = MyInstFrm;
return _instance;
}
From the above code I can't identify my mistake, Does anybody can point me?
Thanks For Helps 
|
|
|
|
|
Paramu1973 wrote: While I want to get the MdiParent-Forms Instance, its giving the error
What error?
|
|
|
|
|
Thanks Richard...Thanks for the helps...
Error()
error C2061: syntax error : identifier 'CFIS_Main'
error C2065: 'MyInstFrm' : undeclared identifier
error C2660: 'MyProjectName::For_Student_Details::GetForm' : function does not take 2 arguments

modified 12-Jun-12 8:54am.
|
|
|
|
|
And you expect us to guess how this relates to your project? Please collect information properly, and show the actual lines of code and messages together, ensuring that you identify which line of code is marked with which error.
You could also look more closely at these messages and work out for yourself:
- why the identifier '
CFIS_Main ' is not recognised. - why you are using the variable '
MyInstFrm ', when it has not been defined in the current compilation unit. - why the call to '
MyProjectName::For_Student_Details::GetForm() ' has the wrong number of arguments.
|
|
|
|
|
Thanks Richard...Manythings I learned from you...
Still all are in mind....I won't forget you & Dave, etc..etc...
Thanks Again 
|
|
|
|
|
How to convert from 'WCHAR' to 'System::String ^' Managed C++
|
|
|
|
|
Use one of the constructors as described here[^].
|
|
|
|
|
int x = (Int32) thisisObjectType is boxing, if the type is already checked ?
if (thisisObjectType->GetType() == Int32::typeid) {
int x = (Int32) thisisObjectType; }
|
|
|
|
|
Why would you use TryParse() if it's already an integer, and why would you need a cast?
|
|
|
|
|
Hi,
From many places Iam still searching to find a solution but not yet clear to me..Its hunting my head...I will be happy, does anybody gives a solution to me..
Actually Iam having VS2010 Ultimate... on 2 systems. I updated 1 system to SP1 &
Windows 3.0 API. That system is 1ly giving the error like...
The Method or Property VCFilter::get_UrlBehavior deprecated and nolonger implemented....
But in another system, without update, still its working fine...
when I create XML_Schema, DataSet by XML Codes, and I can access that DataSet in reports dataset tab... earlier it has worked for me...
Now its giving this error, while I try to access that from Report Data Menu,DataSet Tab...
And therefore I get confused for the above problem....Any right directions for me...
Thanks again...
modified 7-Jun-12 6:15am.
|
|
|
|
|
I just read on stackoverflow[^] that it is probably possible to use C++ CX in normal desktop app (NOT a WinRT app).
(To replace Managed C++ / C++ CLI, with better performance and simplicity)
I wonder, is there any article / blog describing the process? and some fun application of it??
A train station is where the train stops. A bus station is where the bus stops. On my desk, I have a work station....
_________________________________________________________
My programs never have bugs, they just develop random features.
|
|
|
|
|
Hi,
i cannot figure out if static typing and strong typing are the same thing.
Please advise.
Thanks
|
|
|
|
|
They are pretty much the same to a degree.
""Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I can only hope that answers the question to some degree, although I might not be quite sure.
|
|
|
|
|
I know, I was pretty vague
""Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
elelont2 wrote: Please advise.
Use Google[^].
|
|
|
|
|
I have been using google, thats why its vague to me.
|
|
|
|
|
The first link in the Google page I found for you gives quite a clear definition.
|
|
|
|
|
Hello All
I am using this code to calculate Image Integral
This code is working properly.
(I am working under Ubuntu with code::block)
but I want to change this, for calculate Image integral in parallel.
can you help me ?
///////////////////////////////////////////
// name : IntegralImage.c
// programme squentiel
// for display with opencv
///////////////////////////////////////////
#include <stdlib.h>
#include <stdio.h>
#include "opencv/highgui.h"
#define IMAGE_WIDTH 384
#define IMAGE_HEIGHT 286
#define S (IMAGE_WIDTH/8)
#define T (0.15f)
void adaptiveThreshold(unsigned char* input, unsigned char* bin)
{
unsigned long* integralImg = 0;
int i, j;
long sum=0;
int count=0;
int index;
int x1, y1, x2, y2;
int s2 = S/2;
// ============ integral image ================
integralImg = (unsigned long*)malloc(IMAGE_WIDTH*IMAGE_HEIGHT*sizeof(unsigned long*));
for (i=0; i<image_width; i++)
="" {
="" =="====reset" this="" column="" sum="====
" for="" (j="0;" j<image_height;="" j++)
="" index="j*IMAGE_WIDTH+i;
" +="input[index];
" if="" (i="=0)
" integralimg[index]="sum;
" else
="" sum;
="" }
="" }
="" thresholding="===============
" i<image_width;="" seting="" region="" sxs="==========
" x1="i-s2;" x2="i+s2;
" y1="j-s2;" y2="j+s2;
" ckeck="" border="=========
" (x1="" <="" 0)="" (x2="">= IMAGE_WIDTH) x2 = IMAGE_WIDTH-1;
if (y1 < 0) y1 = 0;
if (y2 >= IMAGE_HEIGHT) y2 = IMAGE_HEIGHT-1;
count = (x2-x1)*(y2-y1);
// ===== I(x,y)=s(x2,y2)-s(x1,y2)-s(x2,y1)+s(x1,x1) ===
sum = integralImg[y2*IMAGE_WIDTH+x2] -
integralImg[y1*IMAGE_WIDTH+x2] -
integralImg[y2*IMAGE_WIDTH+x1] +
integralImg[y1*IMAGE_WIDTH+x1];
if ((long)(input[index]*count) < (long)(sum*(1.0-T)))
bin[index] = 0;
else
bin[index] = 255;
}
}
free (integralImg);
}
//////...test avec opencv...
int main (int argc, char** argv)
{
IplImage* cvFrame;
IplImage* binImg;
int key;
cvFrame = cvLoadImage("b.bmp", -1);
binImg = cvCreateImage(cvSize(IMAGE_WIDTH, IMAGE_HEIGHT), 8, 1);
cvNamedWindow("Input", 1);
cvNamedWindow("Output", 1);
adaptiveThreshold((unsigned char*)cvFrame->imageData, (unsigned char*)binImg->imageData);
cvShowImage("Input", cvFrame);
cvShowImage("Output", binImg);
key = cvWaitKey(0);
return 0;
}
|
|
|
|
|
Hi,
heading says it all, how could i find out the total length of the string in the ##__VA_ARGS__
Thanks
|
|
|
|
|
elelont2 wrote: heading says it all, how could i find out the total length of the string in the ##__VA_ARGS__
Subject says "elements". Your statement says "string".
For a string you use null termination or the string length property (depending on what you mean by string.)
In standard C++ if you want to know a count of arguments passed then you need to provide a mechanism for doing that yourself. Just like if your printf format string doesn't match the args passed then it will go off the end. Thus the format string implicitly defines the count.
Not sure but in Managed C++ it might be an actual array so you should be able to get to the Length property.
|
|
|
|
|
I'm a student.I want to use a calendar in my application. It may looks like iCal of MacOsX. Can someone give me the dll? thanks~
|
|
|
|