I am the person that posted the question here [
^]
After numerous hours of trying to reduce the compiler errors to zero, I have finally come to the conclusion that the problem is either with my copy of Visual Studio 2022 or it's a compile settings problem.
After solving a troubling #error compilation error problem, my program will still not compile with Gdiplus elements present.
Somebody wondered if it is the same code I posted online that
I was referring to because he could not understand why I complained that my code did not compile while it effortlessly compiled on his computer.
Finally, I took the bull by the horn. I created an entire new project and compiled it. It compiled and ran. Then I added the troubling Gdiplus elements to it. The new code that has not been tainted by any code of mine in any way, did not run on adding the Gdiplus elements. I finally came to the conclusion that there is something wrong with my copy of Visual Studio or the default compiler settings would not work with gdiplus.
The strangest thing is that the program acts as if it could not see the
<gdiplus.h>
header. It won't recognise any of the classes and structures in that file. As far as it is concerned, the file does not exist.
To resolve the problem, I made the directory in which the file (
gdiplus.h) is located an additional
include dirctory for my project, yet no difference. Finally, I copied the file from its location and put the copy in my application's directory, yet no solution.
I would greatly appreciate it if anyone can help with a solution. I have spent too many hours on this compilation error, not counting those I spent on Google because of it.
If it is a compiler setting problem, I will like to know the correct compiler setting.
Shown below is the Visual Studio's compiler output. A close look will reveal that the program does not recognise
gdiplus
classes. They seem not to exist.
This is the problematic code:
#include "framework.h"
#include <gdiplus.h>
using namespace Gdiplus;
int APIENTRY wWinMain(_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
_In_ int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
GdiplusShutdown(gdiplusToken);
return (int) msg.wParam;
}
Thsis the content of
framework.h:
#pragma once
#include "targetver.h"
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#include <memory.h>
#include <tchar.h>
Build started...
1>------ Build started: Project: ResultSheets, Configuration: Debug x64 ------
1>CppSQLite3.cpp
1>C:\Users\HP\source\repos\ResultSheets\CppSQLite3.cpp(1066,61): warning C4244: 'argument': conversion from 'const __int64' to 'int', possible loss of data
1>ResultSheets.cpp
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusImaging.h(84,16): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusImaging.h(84,15): error C2440: 'initializing': cannot convert from 'const char [37]' to 'int'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusImaging.h(84,15): message : There is no context in which this conversion is possible
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusImaging.h(85,1): error C2146: syntax error: missing ';' before identifier 'IImageBytes'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusImaging.h(85,15): error C2059: syntax error: 'public'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusImaging.h(86,1): error C2143: syntax error: missing ';' before '{'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusImaging.h(86,1): error C2447: '{': missing function header (old-style formal list?)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusImaging.h(291,13): error C3646: 'id': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusImaging.h(291,15): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(397,12): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(407,12): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(417,20): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(455,34): error C2061: syntax error: identifier 'PROPID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(456,33): error C2061: syntax error: identifier 'PROPID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(457,31): error C2061: syntax error: identifier 'PROPID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(465,34): error C2061: syntax error: identifier 'PROPID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(483,5): error C2535: 'Gdiplus::Image::Image(void)': member function already defined or declared
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(396,5): message : see declaration of 'Gdiplus::Image::Image'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(519,12): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(529,12): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(773,17): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(829,12): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(828,5): error C2535: 'Gdiplus::Metafile::Metafile(void)': member function already defined or declared
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(773,5): message : see declaration of 'Gdiplus::Metafile::Metafile'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(836,12): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(835,5): error C2535: 'Gdiplus::Metafile::Metafile(void)': member function already defined or declared
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(773,5): message : see declaration of 'Gdiplus::Metafile::Metafile'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(845,12): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(844,5): error C2535: 'Gdiplus::Metafile::Metafile(void)': member function already defined or declared
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(773,5): message : see declaration of 'Gdiplus::Metafile::Metafile'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(870,12): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(938,5): error C2535: 'Gdiplus::Metafile::Metafile(void)': member function already defined or declared
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusHeaders.h(773,5): message : see declaration of 'Gdiplus::Metafile::Metafile'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1145,32): warning C4229: anachronism used: modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1145,25): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1145,34): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1145,52): error C2065: 'image': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1145,42): error C2275: 'Gdiplus::GpImage': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1151,35): warning C4229: anachronism used: modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1151,28): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1151,37): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1151,55): error C2065: 'image': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1151,45): error C2275: 'Gdiplus::GpImage': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1168,39): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1256,59): error C2061: syntax error: identifier 'PROPID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1259,41): error C2061: syntax error: identifier 'PROPID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1262,37): error C2061: syntax error: identifier 'PROPID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1274,40): error C2061: syntax error: identifier 'PROPID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1298,35): warning C4229: anachronism used: modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1298,28): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1298,37): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1298,56): error C2065: 'bitmap': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1298,45): error C2275: 'Gdiplus::GpBitmap': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1304,38): warning C4229: anachronism used: modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1304,31): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1304,40): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1304,59): error C2065: 'bitmap': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(1304,48): error C2275: 'Gdiplus::GpBitmap': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2235,13): warning C4229: anachronism used: modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2235,5): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2235,25): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2236,25): error C2065: 'header': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2236,5): error C2275: 'Gdiplus::MetafileHeader': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2255,24): error C2061: syntax error: identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2275,38): warning C4229: anachronism used: modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2275,30): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2275,40): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2275,61): error C2065: 'metafile': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2275,48): error C2275: 'Gdiplus::GpMetafile': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2322,13): warning C4229: anachronism used: modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2322,5): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2322,25): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2323,5): error C2275: 'HDC': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2323,25): error C2146: syntax error: missing ')' before identifier 'referenceHdc'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2333,13): warning C4229: anachronism used: modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2333,5): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2333,25): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2334,5): error C2275: 'HDC': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusFlat.h(2334,25): error C2146: syntax error: missing ')' before identifier 'referenceHdc'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusPath.h(145,35): error C2061: syntax error: identifier 'byte'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(80,11): error C7550: 'Gdiplus::Metafile::{ctor}': the qualified name in this context names a constructor, not a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(80,23): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(80,32): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(81,1): error C2143: syntax error: missing ';' before '{'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(81,1): error C2447: '{': missing function header (old-style formal list?)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(198,11): error C7550: 'Gdiplus::Metafile::{ctor}': the qualified name in this context names a constructor, not a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(199,8): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(199,28): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(200,8): error C2275: 'HDC': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(200,28): error C2146: syntax error: missing ')' before identifier 'referenceHdc'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(204,1): error C2143: syntax error: missing ';' before '{'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(204,1): error C2447: '{': missing function header (old-style formal list?)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(215,11): error C7550: 'Gdiplus::Metafile::{ctor}': the qualified name in this context names a constructor, not a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(216,8): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(216,28): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(217,8): error C2275: 'HDC': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(217,28): error C2146: syntax error: missing ')' before identifier 'referenceHdc'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(223,1): error C2143: syntax error: missing ';' before '{'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(223,1): error C2447: '{': missing function header (old-style formal list?)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(234,11): error C7550: 'Gdiplus::Metafile::{ctor}': the qualified name in this context names a constructor, not a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(235,8): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(235,28): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(236,8): error C2275: 'HDC': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(236,28): error C2146: syntax error: missing ')' before identifier 'referenceHdc'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(242,1): error C2143: syntax error: missing ';' before '{'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(242,1): error C2447: '{': missing function header (old-style formal list?)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(284,16): error C2761: 'GetMetafileHeader': redeclaration of member is not allowed
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(284,8): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(284,28): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(285,28): error C2065: 'header': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(285,9): error C2275: 'Gdiplus::MetafileHeader': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(287,1): error C2143: syntax error: missing ';' before '{'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusMetafile.h(287,1): error C2447: '{': missing function header (old-style formal list?)
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusBitmap.h(49,8): error C7550: 'Gdiplus::Image::{ctor}': the qualified name in this context names a constructor, not a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusBitmap.h(50,8): error C2065: 'IStream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusBitmap.h(50,17): error C2065: 'stream': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusBitmap.h(51,8): error C2275: 'BOOL': expected an expression instead of a type
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\GdiplusBitmap.h(52,5): fatal error C1003: error count exceeds 100; stopping compilation
1>Generating Code...
1>Done building project "ResultSheets.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 4:30 PM and took 29.429 seconds ==========
What I have tried:
I have spent hours Googling and trying several approaches to resolve the issue.